mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Port arg specs from type='str' to type='path'
This commit is contained in:
committed by
AlanCoding
parent
ac82751dfa
commit
f7592f6ae7
@@ -178,7 +178,7 @@ def main():
|
|||||||
host=dict(),
|
host=dict(),
|
||||||
username=dict(),
|
username=dict(),
|
||||||
password=dict(no_log=True),
|
password=dict(no_log=True),
|
||||||
ssh_key_data=dict(no_log=True),
|
ssh_key_data=dict(no_log=True, type='path'),
|
||||||
ssh_key_unlock=dict(no_log=True),
|
ssh_key_unlock=dict(no_log=True),
|
||||||
authorize=dict(type='bool', default=False),
|
authorize=dict(type='bool', default=False),
|
||||||
authorize_password=dict(no_log=True),
|
authorize_password=dict(no_log=True),
|
||||||
@@ -223,7 +223,6 @@ def main():
|
|||||||
|
|
||||||
if params['ssh_key_data']:
|
if params['ssh_key_data']:
|
||||||
filename = params['ssh_key_data']
|
filename = params['ssh_key_data']
|
||||||
filename = os.path.expanduser(filename)
|
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
module.fail_json(msg='file not found: %s' % filename)
|
module.fail_json(msg='file not found: %s' % filename)
|
||||||
if os.path.isdir(filename):
|
if os.path.isdir(filename):
|
||||||
|
|||||||
Reference in New Issue
Block a user