Declare empty diff dict ahead of time (#4646)

Fixes #4634
This commit is contained in:
Evan Kaufman 2016-09-02 11:55:03 -07:00 committed by Matt Clay
parent f1db594e9f
commit 77f5472a53

View file

@ -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)