Merge "Fix the idempotent of compute_flavor module"

This commit is contained in:
Zuul 2021-05-04 09:25:49 +00:00 committed by Gerrit Code Review
commit 6787924f13
1 changed files with 2 additions and 0 deletions

View File

@ -220,6 +220,8 @@ def main():
if flavor:
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']:
if module.params[param_key] != flavor[param_key]:
require_update = True