compute: Fix flavor create --id auto · openstack/python-openstackclient@5feaa95 · GitHub
Skip to content

Commit 5feaa95

Browse files
committed
compute: Fix flavor create --id auto
This was inadvertently broken during the switch from novaclient to SDK. Fix it for now but also deprecate it since it is an unnecessary alias. Change-Id: Iaf136d82e00defc86e57ae4ea7e848246f2ade2c Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Closes-bug: #2120833
1 parent d90e18b commit 5feaa95

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

openstackclient/compute/v2/flavor.py

Lines changed: 14 additions & 1 deletion

openstackclient/tests/unit/compute/v2/test_flavor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def test_flavor_create_other_options(self):
245245
'ram': self.flavor.ram,
246246
'vcpus': self.flavor.vcpus,
247247
'disk': self.flavor.disk,
248-
'id': 'auto',
248+
'id': None,
249249
'ephemeral': self.flavor.ephemeral,
250250
'swap': self.flavor.swap,
251251
'rxtx_factor': self.flavor.rxtx_factor,
Lines changed: 6 additions & 0 deletions

0 commit comments

Comments
 (0)