Fixed bug where if destination was unspecified, changed would not be set, resulting in an UnboundLocalError.
This commit is contained in:
parent
ced36f3e81
commit
87b4c0d194
1 changed files with 2 additions and 0 deletions
|
@ -394,6 +394,8 @@ def main():
|
||||||
file_args['path'] = dest
|
file_args['path'] = dest
|
||||||
changed = module.set_file_attributes_if_different(file_args, changed)
|
changed = module.set_file_attributes_if_different(file_args, changed)
|
||||||
resp['path'] = dest
|
resp['path'] = dest
|
||||||
|
else:
|
||||||
|
changed = False
|
||||||
|
|
||||||
# Transmogrify the headers, replacing '-' with '_', since variables dont work with dashes.
|
# Transmogrify the headers, replacing '-' with '_', since variables dont work with dashes.
|
||||||
uresp = {}
|
uresp = {}
|
||||||
|
|
Loading…
Reference in a new issue