Browse Source

Merge "Fix the idempotent of compute_flavor module"

changes/93/789793/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
6787924f13
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      plugins/modules/compute_flavor.py

+ 2
- 0
plugins/modules/compute_flavor.py 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


Loading…
Cancel
Save