From 751e268f0da5c5fc8762d09b3186c1725f9ab4ce Mon Sep 17 00:00:00 2001 From: mcameron Date: Mon, 16 Feb 2015 14:58:53 +0000 Subject: [PATCH] Useful log output. --- lib/ansible/modules/cloud/openstack/nova_compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/openstack/nova_compute.py b/lib/ansible/modules/cloud/openstack/nova_compute.py index b51a1891a7..1005023465 100644 --- a/lib/ansible/modules/cloud/openstack/nova_compute.py +++ b/lib/ansible/modules/cloud/openstack/nova_compute.py @@ -324,7 +324,7 @@ def _add_floating_ip_from_pool(module, nova, server): try: new_ip = nova.floating_ips.create(pool) except Exception, e: - module.fail_json(msg = "Unable to create floating ip") + module.fail_json(msg = "Unable to create floating ip: %s" % (e.message)) pool_ips.append(new_ip.ip) # Add to the main list usable_floating_ips[pool] = pool_ips