Skip to content

Commit 9ee8b4a

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Remove deprecated 'project usage list' command"
2 parents 319fc09 + 1a8020c commit 9ee8b4a

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

openstackclient/compute/v2/usage.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,3 @@ def take_action(self, parsed_args):
196196
float("%.2f" % usage.total_local_gb_usage)
197197
if hasattr(usage, "total_local_gb_usage") else None)
198198
return zip(*sorted(six.iteritems(info)))
199-
200-
201-
# This is out of order due to the subclass, will eventually be removed
202-
203-
class ListProjectUsage(ListUsage):
204-
"""List resource usage per project"""
205-
206-
deprecated = True
207-
208-
log = logging.getLogger('DEPRECATED:')
209-
210-
def take_action(self, parsed_args):
211-
self.log.warning(
212-
"%s is deprecated, use 'usage list'",
213-
getattr(self, 'cmd_name', 'this command'),
214-
)
215-
return super(ListProjectUsage, self).take_action(parsed_args)

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ openstack.compute.v2 =
104104
keypair_list = openstackclient.compute.v2.keypair:ListKeypair
105105
keypair_show = openstackclient.compute.v2.keypair:ShowKeypair
106106

107-
project_usage_list = openstackclient.compute.v2.usage:ListProjectUsage
108-
109107
security_group_create = openstackclient.compute.v2.security_group:CreateSecurityGroup
110108
security_group_delete = openstackclient.compute.v2.security_group:DeleteSecurityGroup
111109
security_group_list = openstackclient.compute.v2.security_group:ListSecurityGroup

0 commit comments

Comments
 (0)