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.
reviewable/pr18780/r1
Jesse Keating 12 years ago
parent 4b5bea6a32
commit 8e158fae89

2
rax

@ -124,7 +124,7 @@ def cloudservers(module, state, name, flavor, image, meta, key_name, files,
for server in pyrax.cloudservers.list(): for server in pyrax.cloudservers.list():
if name != server.name: if name != server.name:
continue continue
if flavor != server.flavor['id']: if int(flavor) != int(server.flavor['id']):
continue continue
if image != server.image['id']: if image != server.image['id']:
continue continue

Loading…
Cancel
Save