mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make sure we compare flavor IDs as ints
We were comparing an int to a string and getting things wrong, so idempotence was lost. This forces the comparison to be int.
This commit is contained in:
parent
1f96925159
commit
670f59a458
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def cloudservers(module, state, name, flavor, image, meta, key_name, files,
|
|||
for server in pyrax.cloudservers.list():
|
||||
if name != server.name:
|
||||
continue
|
||||
if flavor != server.flavor['id']:
|
||||
if int(flavor) != int(server.flavor['id']):
|
||||
continue
|
||||
if image != server.image['id']:
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue