1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Useful log output.

This commit is contained in:
mcameron 2015-02-16 14:58:53 +00:00 committed by Matt Clay
parent fe08f52d92
commit 751e268f0d

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