Skip to content

Commit

Permalink
Use type='path' instead of 'str' for deploy_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mscherer authored and bcoca committed Dec 13, 2016
1 parent db8719c commit f9460f3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/ansible/modules/web_infrastructure/deploy_helper.py
Expand Up @@ -289,8 +289,6 @@
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)

Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit f9460f3

Please sign in to comment.