summaryrefslogtreecommitdiff
path: root/novaclient/tests/unit/fixture_data
diff options
context:
space:
mode:
authorzhangbailin <zhangbailin@inspur.com>2019-06-13 21:22:28 +0800
committerMatt Riedemann <mriedem.os@gmail.com>2019-08-28 17:43:22 -0400
commitecfa521b2126e2f0cee25969a7d2c4c8637abba2 (patch)
tree0efcfecd3d091d0f32c38906bfaba646a31998bd /novaclient/tests/unit/fixture_data
parenta3e44e8b39492e9604724cdfc5c9d2ede06e6c02 (diff)
downloadpython-novaclient-ecfa521b2126e2f0cee25969a7d2c4c8637abba2.tar.gz
Microversion 2.77: Support Specifying AZ to unshelve
This patch adds a new parameter ``--availability-zone`` to ``nova unshelve`` command. This can help users to specify an ``availability_zone`` to unshelve a shelve offloaded server from 2.77 microversion. Depends-On: https://review.opendev.org/#/c/663851/ Implements: blueprint support-specifying-az-when-restore-shelved-server Change-Id: I8bce8f430bc54f03bacc105e37fc8b3bbf2432c2
Diffstat (limited to 'novaclient/tests/unit/fixture_data')
-rw-r--r--novaclient/tests/unit/fixture_data/servers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/novaclient/tests/unit/fixture_data/servers.py b/novaclient/tests/unit/fixture_data/servers.py
index d3354469..9962842a 100644
--- a/novaclient/tests/unit/fixture_data/servers.py
+++ b/novaclient/tests/unit/fixture_data/servers.py
@@ -456,6 +456,8 @@ class V1(Base):
return None
elif action == 'lock':
return None
+ elif action == 'unshelve':
+ return None
elif action == 'rebuild':
body = body[action]
adminPass = body.get('adminPass', 'randompassword')