Merge pull request #796 from mcameron/devel

Useful log output.
This commit is contained in:
Brian Coca 2015-02-16 12:08:56 -05:00
commit eef43d3f3a

View file

@ -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)