mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-29 03:04:29 +00:00
Merge "Fix the idempotent of compute_flavor module"
This commit is contained in:
@@ -220,6 +220,8 @@ def main():
|
|||||||
|
|
||||||
if flavor:
|
if flavor:
|
||||||
old_extra_specs = flavor['extra_specs']
|
old_extra_specs = flavor['extra_specs']
|
||||||
|
if flavor['swap'] == "":
|
||||||
|
flavor['swap'] = 0
|
||||||
for param_key in ['ram', 'vcpus', 'disk', 'ephemeral', 'swap', 'rxtx_factor', 'is_public']:
|
for param_key in ['ram', 'vcpus', 'disk', 'ephemeral', 'swap', 'rxtx_factor', 'is_public']:
|
||||||
if module.params[param_key] != flavor[param_key]:
|
if module.params[param_key] != flavor[param_key]:
|
||||||
require_update = True
|
require_update = True
|
||||||
|
|||||||
Reference in New Issue
Block a user