Skip to content

Commit 1a8020c

Browse files
author
Dean Troyer
committed
Remove deprecated 'project usage list' command
Remove the 'project usage list' command that was deprecated in version 1.0.2 in review Ie08d4f88d71a660fca1862405351109cd0aa86b6. Note that the removed command class is a good example of how to wrap a command and show a deprecation message. Change-Id: I6c750730963615895f5d9953487d2d5a905885a8
1 parent 74d53cd commit 1a8020c

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)