summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormcameron <max.cameron@johngaltsystems.com>2015-02-16 14:58:53 +0000
committermcameron <max.cameron@johngaltsystems.com>2015-02-16 14:58:53 +0000
commit8eb7870a5e9a929f5207436645d742f6f3da1b8b (patch)
treebc16d1885e87df09501c35a6c4f6c898a4b13981
parent89414b4f3f80789d69879a943e2902d6ade4c441 (diff)
downloadansible-modules-core-8eb7870a5e9a929f5207436645d742f6f3da1b8b.tar.gz
Useful log output.
-rw-r--r--cloud/openstack/nova_compute.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/openstack/nova_compute.py b/cloud/openstack/nova_compute.py
index b51a1891..10050234 100644
--- a/cloud/openstack/nova_compute.py
+++ b/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