Removed busted tmp_dir option that was a bad idea to begin with.

reviewable/pr18780/r1
Timothy Appnel 11 years ago
parent 26585aae46
commit 35068527db

@ -91,7 +91,6 @@ def main():
src = dict(required=True), src = dict(required=True),
dest = dict(required=True), dest = dict(required=True),
verbosity = dict(default=0), verbosity = dict(default=0),
tmp_dir = dict(default=None),
delete = dict(default='no', type='bool'), delete = dict(default='no', type='bool'),
private_key = dict(default=None), private_key = dict(default=None),
rsync_path = dict(default=None), rsync_path = dict(default=None),
@ -106,7 +105,6 @@ def main():
private_key = module.params['private_key'] private_key = module.params['private_key']
rsync_path = module.params['rsync_path'] rsync_path = module.params['rsync_path']
rsync = module.params.get('local_rsync_path', 'rsync') rsync = module.params.get('local_rsync_path', 'rsync')
temp = os.path.dirname(os.path.realpath(__file__))
cmd = '%s --archive --delay-updates --compress' % rsync cmd = '%s --archive --delay-updates --compress' % rsync
if module.check_mode: if module.check_mode:
@ -115,8 +113,6 @@ def main():
cmd = '%s -%s' % (cmd, 'v' * int(verbosity)) cmd = '%s -%s' % (cmd, 'v' * int(verbosity))
else: else:
cmd = cmd + ' --quiet' cmd = cmd + ' --quiet'
if temp:
cmd = cmd + ' --temp-dir ' + temp
if delete: if delete:
cmd = cmd + ' --delete-after' cmd = cmd + ' --delete-after'
if private_key is None: if private_key is None:

Loading…
Cancel
Save