Update create_flavor and set_aggregate

Removed '--is_public' from args_dict inside create_flavor since it is
  not a valid argument for openstack create flavor, it is just used to
  add either '--public' or '--private' to the comand.

Story: 2007472
Task: 39164

Patch Set 2:
  added Signed off by
  added Story
  added Task

Change-Id: I16cc0d4000ab9313c65a7fa76c66678b4af65956
Signed-off-by: George Postolache <george.postolache@intel.com>
This commit is contained in:
George Postolache 2020-03-19 10:44:19 +02:00
parent a98da79ef4
commit 94621238d7
1 changed files with 1 additions and 2 deletions

View File

@ -83,7 +83,6 @@ def create_flavor(name=None, flavor_id=None, vcpus=1, ram=1024, root_disk=None,
'--ephemeral': ephemeral,
'--swap': swap,
'--rxtx-factor': rxtx_factor,
'--is-public': is_public,
'--disk': root_disk,
'--ram': ram,
'--vcpus': vcpus,
@ -184,7 +183,7 @@ def set_aggregate(aggregate, properties=None, no_property=None, zone=None,
if code > 0:
return 1, output
msg = "Aggregate set successfully with param: {}".format(aggregate, args)
msg = "Aggregate {} set successfully with param: {}".format(aggregate, args)
LOG.info(msg)
return 0, msg