mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
Fixed bug where if destination was unspecified, changed would not be set, resulting in an UnboundLocalError.
This commit is contained in:
@@ -394,6 +394,8 @@ def main():
|
||||
file_args['path'] = dest
|
||||
changed = module.set_file_attributes_if_different(file_args, changed)
|
||||
resp['path'] = dest
|
||||
else:
|
||||
changed = False
|
||||
|
||||
# Transmogrify the headers, replacing '-' with '_', since variables dont work with dashes.
|
||||
uresp = {}
|
||||
|
||||
Reference in New Issue
Block a user