commit
eef43d3f3a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue