From f9460f3c8056e34c6c25201dcc17487744d0e651 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 30 Apr 2016 14:00:35 +0200 Subject: [PATCH] Use type='path' instead of 'str' for deploy_helper --- lib/ansible/modules/web_infrastructure/deploy_helper.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/web_infrastructure/deploy_helper.py b/lib/ansible/modules/web_infrastructure/deploy_helper.py index 3aec33ead4..b70b30bf0e 100644 --- a/lib/ansible/modules/web_infrastructure/deploy_helper.py +++ b/lib/ansible/modules/web_infrastructure/deploy_helper.py @@ -289,8 +289,6 @@ from ansible.module_utils.pycompat24 import get_exception class DeployHelper(object): def __init__(self, module): - module.params['path'] = os.path.expanduser(module.params['path']) - self.module = module self.file_args = module.load_file_common_arguments(module.params) @@ -462,11 +460,11 @@ def main(): module = AnsibleModule( argument_spec = dict( - path = dict(aliases=['dest'], required=True, type='str'), + path = dict(aliases=['dest'], required=True, type='path'), release = dict(required=False, type='str', default=None), releases_path = dict(required=False, type='str', default='releases'), - shared_path = dict(required=False, type='str', default='shared'), - current_path = dict(required=False, type='str', default='current'), + shared_path = dict(required=False, type='path', default='shared'), + current_path = dict(required=False, type='path', default='current'), keep_releases = dict(required=False, type='int', default=5), clean = dict(required=False, type='bool', default=True), unfinished_filename = dict(required=False, type='str', default='DEPLOY_UNFINISHED'),