Lots of formatting fixes

This commit is contained in:
Michael DeHaan
2013-05-24 23:46:23 -04:00
parent 9c5d6f11f0
commit 3a635d2d26
11 changed files with 88 additions and 89 deletions

View File

@@ -139,7 +139,7 @@ def _get_quantum_client(module, kwargs):
'endpoint_url': endpoint
}
try:
quantum = client.Client('2.0', **kwargs)
quantum = client.Client('2.0', **kwargs)
except Exception as e:
module.fail_json(msg = " Error in connecting to quantum: %s " %e.message)
return quantum
@@ -154,7 +154,7 @@ def _set_tenant_id(module):
for tenant in _os_keystone.tenants.list():
if tenant.name == tenant_name:
_os_tenant_id = tenant.id
break;
break
if not _os_tenant_id:
module.fail_json(msg = "The tenant id cannot be found, please check the paramters")