Skip to content

Commit

Permalink
MAINT: remove quota show action
Browse files Browse the repository at this point in the history
this action is unused
  • Loading branch information
anish-mudaraddi committed May 9, 2024
1 parent 9312fbb commit 0de4005
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
14 changes: 0 additions & 14 deletions actions/quota.show.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions actions/src/quota_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,3 @@ def quota_set(
),
)
return True

def quota_show(self, project):
"""
Show a project's quota
:param project: ID or Name
:return: (status (Bool), reason (String))
"""
# get project id
project_id = self.find_resource_id(project, self.conn.identity.find_project)
if not project_id:
return False, f"Project not found with Name or ID {project}"
try:
# quota ID is same as project ID
quota = self.conn.network.get_quota(quota=project_id, details=True)
except ResourceNotFound as err:
return False, f"Quota not found {err}"
return True, quota

0 comments on commit 0de4005

Please sign in to comment.