Declare empty diff dict ahead of time (#4646)

Fixes #4634
pull/18777/head
Evan Kaufman 8 years ago committed by Matt Clay
parent f1db594e9f
commit 77f5472a53

@ -130,6 +130,7 @@ def main():
params = module.params
dest = os.path.expanduser(params['dest'])
diff = dict()
if os.path.isdir(dest):
module.fail_json(rc=256, msg='Destination %s is a directory !' % dest)

Loading…
Cancel
Save