Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instance idempotence #2799

Merged
merged 2 commits into from
Apr 27, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions library/rax
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -246,7 +246,6 @@ def main():
module.fail_json(msg = 'Unable to load %s' % e.message)

# setup the auth
sys.stderr.write('region is %s' % region)
try:
pyrax.set_credential_file(creds_file, region=region)
except Exception, e:
Expand Down