From f799180a58701d69d00248ad0008a84b626d73a7 Mon Sep 17 00:00:00 2001 From: mcameron Date: Mon, 16 Feb 2015 15:08:39 +0000 Subject: [PATCH] More general output. --- lib/ansible/modules/cloud/openstack/nova_compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/openstack/nova_compute.py b/lib/ansible/modules/cloud/openstack/nova_compute.py index 1005023465a..a9bd05b1e3f 100644 --- a/lib/ansible/modules/cloud/openstack/nova_compute.py +++ b/lib/ansible/modules/cloud/openstack/nova_compute.py @@ -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)