summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Guerri <davide.guerri@gmail.com>2015-04-20 15:26:20 +0100
committerDavide Guerri <davide.guerri@gmail.com>2015-04-20 15:26:20 +0100
commit99faeff36052c73812460fd0f1b8b848881169e2 (patch)
treee733c60a8d882b1de90e73649e7f82f86c4a74a8
parent89024bf08616a7147f94249ccf7e64617b5ea8b9 (diff)
downloadopenstack-ansible-modules-99faeff36052c73812460fd0f1b8b848881169e2.tar.gz
Use region_name to retrieve nova VM list
-rw-r--r--neutron_floating_ip3
1 files changed, 2 insertions, 1 deletions
diff --git a/neutron_floating_ip b/neutron_floating_ip
index 6d3ccd3..fbece6c 100644
--- a/neutron_floating_ip
+++ b/neutron_floating_ip
@@ -241,7 +241,8 @@ def main():
try:
nova = nova_client.Client(module.params['login_username'], module.params['login_password'],
- module.params['login_tenant_name'], module.params['auth_url'], service_type='compute')
+ module.params['login_tenant_name'], module.params['auth_url'], service_type='compute',
+ region_name=module.params.get('region_name'))
neutron = _get_neutron_client(module, module.params)
except Exception as e:
module.fail_json(msg="Error in authenticating to nova: %s" % e.message)