Commit 8f45b77d by asmajlovic Committed by James Cammarata

Comparison data type mismatch corrected

parent 0c98c764
......@@ -94,8 +94,12 @@ notes:
'''
EXAMPLES = '''
# Create a server
- local_action:
- name: Build a Cloud Server
gather_facts: False
tasks:
- name: Server build request
local_action:
module: rax
credentials: ~/.raxpub
service: cloudservers
......@@ -196,7 +200,7 @@ def cloudservers(module, state, name, flavor, image, meta, key_name, files,
# See if we can find a server that matches our credentials
for server in servers:
if server.name == name:
if server.flavor['id'] == flavor and \
if int(server.flavor['id']) == int(flavor) and \
server.image['id'] == image and \
server.metadata == meta:
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment