Comparison data type mismatch corrected
This commit is contained in:
parent
97a42d58fe
commit
686a6f5557
1 changed files with 18 additions and 14 deletions
10
cloud/rax
10
cloud/rax
|
@ -94,8 +94,12 @@ notes:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Create a server
|
- name: Build a Cloud Server
|
||||||
- local_action:
|
gather_facts: False
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Server build request
|
||||||
|
local_action:
|
||||||
module: rax
|
module: rax
|
||||||
credentials: ~/.raxpub
|
credentials: ~/.raxpub
|
||||||
service: cloudservers
|
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
|
# See if we can find a server that matches our credentials
|
||||||
for server in servers:
|
for server in servers:
|
||||||
if server.name == name:
|
if server.name == name:
|
||||||
if server.flavor['id'] == flavor and \
|
if int(server.flavor['id']) == int(flavor) and \
|
||||||
server.image['id'] == image and \
|
server.image['id'] == image and \
|
||||||
server.metadata == meta:
|
server.metadata == meta:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue