summaryrefslogtreecommitdiff
path: root/neutron_network
diff options
context:
space:
mode:
Diffstat (limited to 'neutron_network')
-rw-r--r--neutron_network10
1 files changed, 6 insertions, 4 deletions
diff --git a/neutron_network b/neutron_network
index 0f492be..9c8dc1c 100644
--- a/neutron_network
+++ b/neutron_network
@@ -121,10 +121,12 @@ _os_tenant_id = None
def _get_ksclient(module, kwargs):
try:
- kclient = ksclient.Client(username=kwargs.get('login_username'),
- password=kwargs.get('login_password'),
- tenant_name=kwargs.get('login_tenant_name'),
- auth_url=kwargs.get('auth_url'))
+ kclient = ksclient.Client(
+ username=module.params.get('login_username'),
+ password=module.params.get('login_password'),
+ tenant_name=module.params.get('login_tenant_name'),
+ auth_url=module.params.get('auth_url'),
+ region_name=module.params.get('region_name'))
except Exception as e:
module.fail_json(msg = "Error authenticating to the keystone: %s" %e.message)
global _os_keystone