mirror of
https://github.com/ansible/awx.git
synced 2026-07-10 07:48:05 -02:30
cli: warn users if they specify a missing file with @
This commit is contained in:
@@ -165,8 +165,7 @@ class ResourceOptionsParser(object):
|
||||
# (to make things like SSH key data easier to work with)
|
||||
if isinstance(v, six.text_type) and v.startswith('@'):
|
||||
path = os.path.expanduser(v[1:])
|
||||
if os.path.exists(path):
|
||||
parsed[k] = open(path).read()
|
||||
parsed[k] = open(path).read()
|
||||
|
||||
return parsed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user