mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
expand when opening too
This commit is contained in:
parent
57703450f5
commit
f6efa9aaa5
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +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')
|
||||
f = open(user_data)
|
||||
user_data = f.read()
|
||||
f.close()
|
||||
|
|
Loading…
Reference in a new issue