From f7592f6ae73709a2bf07e5075d1e95dedc1f3b15 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Sat, 7 Oct 2017 14:57:13 -0700 Subject: [PATCH] Port arg specs from type='str' to type='path' --- .../web_infrastructure/ansible_tower/tower_credential.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_credential.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_credential.py index 5b503f0692..97f6c4f2fb 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_credential.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_credential.py @@ -178,7 +178,7 @@ def main(): host=dict(), username=dict(), 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), authorize=dict(type='bool', default=False), authorize_password=dict(no_log=True), @@ -223,7 +223,6 @@ def main(): if params['ssh_key_data']: filename = params['ssh_key_data'] - filename = os.path.expanduser(filename) if not os.path.exists(filename): module.fail_json(msg='file not found: %s' % filename) if os.path.isdir(filename):