expand when opening too

This commit is contained in:
Pete Travis 2016-02-13 20:33:19 -06:00
parent 7cfa625a31
commit d5242e4016

View file

@ -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()