From 1efbaf9075c408e6a26925e6b3f3bd5bd85321b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Fri, 27 Mar 2015 13:11:40 +0000 Subject: [PATCH] print correct error message --- filter_plugins/openstack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter_plugins/openstack.py b/filter_plugins/openstack.py index 1545bf1e5f..b8d0614799 100644 --- a/filter_plugins/openstack.py +++ b/filter_plugins/openstack.py @@ -66,7 +66,7 @@ def network_name_to_id(host_vars, user, password, tenant, auth_url): if networks: result += [networks[0]['id']] else: - raise errors.AnsibleFilterError('There is no network of name {0} accessible for tenant {1}'.format(host_vars, tenant)) + raise errors.AnsibleFilterError('There is no network of name {0} accessible for tenant {1}'.format(net, tenant)) if result_as_list: return result else: @@ -90,7 +90,7 @@ def network_id_to_name(host_vars, user, password, tenant, auth_url): if networks: result += [networks[0]['name']] else: - raise errors.AnsibleFilterError('There is no network of id {0} accessible for tenant {1}'.format(host_vars, tenant)) + raise errors.AnsibleFilterError('There is no network of id {0} accessible for tenant {1}'.format(net, tenant)) if result_as_list: return result else: