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