From 211d0656f8c3982e0a35f0bda1e67a31c8ad5672 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 25 May 2017 19:44:39 +0530 Subject: [PATCH] Misc Typo correction (#25025) Signed-off-by: Abhijeet Kasurde --- lib/ansible/module_utils/vca.py | 2 +- lib/ansible/modules/cloud/rackspace/rax.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/module_utils/vca.py b/lib/ansible/module_utils/vca.py index ac13d0b0aa..4adc3fd07b 100644 --- a/lib/ansible/module_utils/vca.py +++ b/lib/ansible/module_utils/vca.py @@ -306,7 +306,7 @@ def vca_login(module): if service_type == 'vchs': version = '5.6' elif service_type == 'vcd' and not version: - version == '5.6' + version = '5.6' vca = VCA(host=host, username=username, service_type=SERVICE_MAP[service_type], diff --git a/lib/ansible/modules/cloud/rackspace/rax.py b/lib/ansible/modules/cloud/rackspace/rax.py index f4a0d77500..4d393a405b 100644 --- a/lib/ansible/modules/cloud/rackspace/rax.py +++ b/lib/ansible/modules/cloud/rackspace/rax.py @@ -338,7 +338,7 @@ def create(module, names=[], flavor=None, image=None, meta={}, key_name=None, try: server.get() except: - server.status == 'ERROR' + server.status = 'ERROR' if not filter(lambda s: s.status not in FINAL_STATUSES, servers): @@ -352,7 +352,7 @@ def create(module, names=[], flavor=None, image=None, meta={}, key_name=None, try: server.get() except: - server.status == 'ERROR' + server.status = 'ERROR' instance = rax_to_dict(server, 'server') if server.status == 'ACTIVE' or not wait: success.append(instance)