diff options
author | Brian Coca <bcoca@ansible.com> | 2015-02-16 12:08:56 -0500 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2015-02-16 12:08:56 -0500 |
commit | eef43d3f3a5eff79afca495134989bd9502b4337 (patch) | |
tree | 42445ca85886c5ee0b3cf549afb7e37cc78c58e6 | |
parent | 68478691fa91f83751031a57f478e7fc493ad8ce (diff) | |
parent | 24f8792babd9abd7512e88cdaca5ec13e1114d1f (diff) | |
download | ansible-modules-core-eef43d3f3a5eff79afca495134989bd9502b4337.tar.gz |
Merge pull request #796 from mcameron/devel
Useful log output.
-rw-r--r-- | cloud/openstack/nova_compute.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud/openstack/nova_compute.py b/cloud/openstack/nova_compute.py index b51a1891..a9bd05b1 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 @@ -356,7 +356,7 @@ def _add_auto_floating_ip(module, nova, server): try: new_ip = nova.floating_ips.create() except Exception as e: - module.fail_json(msg = "Unable to create floating ip: %s" % (e.message)) + module.fail_json(msg = "Unable to create floating ip: %s" % (e)) try: server.add_floating_ip(new_ip) |