From 99faeff36052c73812460fd0f1b8b848881169e2 Mon Sep 17 00:00:00 2001 From: Davide Guerri Date: Mon, 20 Apr 2015 15:26:20 +0100 Subject: Use region_name to retrieve nova VM list --- neutron_floating_ip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1