From a89992f70fc9c85cee96dbe6b7b67ff564921c08 Mon Sep 17 00:00:00 2001 From: adejongh Date: Fri, 7 Oct 2016 22:14:56 +0200 Subject: [PATCH] Fixed incorrect usage of user_data variable (#5194) --- lib/ansible/modules/cloud/rackspace/rax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/rackspace/rax.py b/lib/ansible/modules/cloud/rackspace/rax.py index 64105d32ed0..9ac0318c105 100644 --- a/lib/ansible/modules/cloud/rackspace/rax.py +++ b/lib/ansible/modules/cloud/rackspace/rax.py @@ -182,7 +182,7 @@ options: description: - how long before wait gives up, in seconds default: 300 -author: +author: - "Jesse Keating (@j2sol)" - "Matt Martz (@sivel)" notes: @@ -287,7 +287,7 @@ def create(module, names=[], flavor=None, image=None, meta={}, key_name=None, if user_data and os.path.isfile(os.path.expanduser(user_data)): try: - user_data = os.path.expanduser('user_data') + user_data = os.path.expanduser(user_data) f = open(user_data) user_data = f.read() f.close()