commit bc11c4d7d8fef1d8eef3bb8f5fa18e27b9ea2964
Author: Dean Troyer <email address hidden>
Date: Wed Jan 14 18:44:10 2015 -0600
Deprecate project usage list command
Rather than pointing the 'project usage list' entry point directly to
ListUsage, this makes a ListProjectUsage subclass to alias the desired
command and still allow for changing behaviour or issuing a deprecation
messages. This implementation simply sets a new 'deprecated' attribute
in the command class that cliff will use to skip this command when
generating help output.
The actual skipping of the command in help output is dependant on https://review.openstack.org/147349 merging in cliff, this review will
simply have no effect on help output until a version of cliff with
that update is present.
The deprecation message printed is somewhat generic until https://review.openstack.org/147381 is merged in cliff.
Until that is merged, the deprecation message will not have the name
of the actual command given by the user in it, but rather the text
'this command'.
Reviewed: https:/ /review. openstack. org/147379 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=bc11c4d7d8f ef1d8eef3bb8f5f a18e27b9ea2964
Committed: https:/
Submitter: Jenkins
Branch: master
commit bc11c4d7d8fef1d 8eef3bb8f5fa18e 27b9ea2964
Author: Dean Troyer <email address hidden>
Date: Wed Jan 14 18:44:10 2015 -0600
Deprecate project usage list command
Rather than pointing the 'project usage list' entry point directly to
ListUsage, this makes a ListProjectUsage subclass to alias the desired
command and still allow for changing behaviour or issuing a deprecation
messages. This implementation simply sets a new 'deprecated' attribute
in the command class that cliff will use to skip this command when
generating help output.
The actual skipping of the command in help output is dependant on /review. openstack. org/147349 merging in cliff, this review will
https:/
simply have no effect on help output until a version of cliff with
that update is present.
The deprecation message printed is somewhat generic until /review. openstack. org/147381 is merged in cliff.
https:/
Until that is merged, the deprecation message will not have the name
of the actual command given by the user in it, but rather the text
'this command'.
Closes-bug: #1406654 0fca18624053511 09cd0aa86b6
Change-Id: Ie08d4f88d71a66