diff options
author | mcameron <max.cameron@johngaltsystems.com> | 2015-02-16 14:58:53 +0000 |
---|---|---|
committer | mcameron <max.cameron@johngaltsystems.com> | 2015-02-16 14:58:53 +0000 |
commit | 8eb7870a5e9a929f5207436645d742f6f3da1b8b (patch) | |
tree | bc16d1885e87df09501c35a6c4f6c898a4b13981 | |
parent | 89414b4f3f80789d69879a943e2902d6ade4c441 (diff) | |
download | ansible-modules-core-8eb7870a5e9a929f5207436645d742f6f3da1b8b.tar.gz |
Useful log output.
-rw-r--r-- | cloud/openstack/nova_compute.py | 2 |
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 |