summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2/server_volume.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2022-12-15 18:21:29 +0000
committerStephen Finucane <sfinucan@redhat.com>2022-12-15 18:22:08 +0000
commite0577e7ebe359ff241023b64055f777f8504d3af (patch)
tree98d4db1ca57fb23f3c5ea5e2403eba058019bf4e /openstackclient/compute/v2/server_volume.py
parent25b4714f1cd12c20ff7653f05dddb5486a037fcc (diff)
downloadpython-openstackclient-e0577e7ebe359ff241023b64055f777f8504d3af.tar.gz
compute: 'server volume update' -> 'server volume set'
We use 'set', not 'update', in command names. An alias is provided. Change-Id: I7864599e06df055999b975aabf101611cd482753 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/compute/v2/server_volume.py')
-rw-r--r--openstackclient/compute/v2/server_volume.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/server_volume.py b/openstackclient/compute/v2/server_volume.py
index 7d0cd336..b4322c0b 100644
--- a/openstackclient/compute/v2/server_volume.py
+++ b/openstackclient/compute/v2/server_volume.py
@@ -78,7 +78,7 @@ class ListServerVolume(command.Lister):
)
-class UpdateServerVolume(command.Command):
+class SetServerVolume(command.Command):
"""Update a volume attachment on the server."""
def get_parser(self, prog_name):
@@ -140,3 +140,8 @@ class UpdateServerVolume(command.Command):
volume,
delete_on_termination=parsed_args.delete_on_termination,
)
+
+
+# Legacy alias
+class UpdateServerVolume(SetServerVolume):
+ """DEPRECATED: Use 'server volume set' instead."""