summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2015-11-18 15:32:36 -0600
committerDean Troyer <dtroyer@gmail.com>2015-11-18 15:37:55 -0600
commit1a8020cc1b7a47ad5c910673ce3d279687bbaa14 (patch)
treeefb98a213cb1d717c527d6ee9a2caf12b55695e9
parent74d53cdd5070e6992e8acabd6984bb2e1658d341 (diff)
downloadpython-openstackclient-1a8020cc1b7a47ad5c910673ce3d279687bbaa14.tar.gz
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
-rw-r--r--openstackclient/compute/v2/usage.py17
-rw-r--r--setup.cfg2
2 files changed, 0 insertions, 19 deletions
diff --git a/openstackclient/compute/v2/usage.py b/openstackclient/compute/v2/usage.py
index 6d5d678f..4e7cf100 100644
--- a/openstackclient/compute/v2/usage.py
+++ b/openstackclient/compute/v2/usage.py
@@ -196,20 +196,3 @@ class ShowUsage(show.ShowOne):
float("%.2f" % usage.total_local_gb_usage)
if hasattr(usage, "total_local_gb_usage") else None)
return zip(*sorted(six.iteritems(info)))
-
-
-# This is out of order due to the subclass, will eventually be removed
-
-class ListProjectUsage(ListUsage):
- """List resource usage per project"""
-
- deprecated = True
-
- log = logging.getLogger('DEPRECATED:')
-
- def take_action(self, parsed_args):
- self.log.warning(
- "%s is deprecated, use 'usage list'",
- getattr(self, 'cmd_name', 'this command'),
- )
- return super(ListProjectUsage, self).take_action(parsed_args)
diff --git a/setup.cfg b/setup.cfg
index b59b8474..d79df17b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -104,8 +104,6 @@ openstack.compute.v2 =
keypair_list = openstackclient.compute.v2.keypair:ListKeypair
keypair_show = openstackclient.compute.v2.keypair:ShowKeypair
- project_usage_list = openstackclient.compute.v2.usage:ListProjectUsage
-
security_group_create = openstackclient.compute.v2.security_group:CreateSecurityGroup
security_group_delete = openstackclient.compute.v2.security_group:DeleteSecurityGroup
security_group_list = openstackclient.compute.v2.security_group:ListSecurityGroup