From 99196024ddc0e02a8175cc2e55fb99ad4e510a2b Mon Sep 17 00:00:00 2001 From: Piffey Parlance Date: Mon, 29 Apr 2013 13:59:06 -0500 Subject: [PATCH] Fixed bug where if destination was unspecified, changed would not be set, resulting in an UnboundLocalError. --- library/network/uri | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/network/uri b/library/network/uri index f2b0ab0354..4385ea56ba 100644 --- a/library/network/uri +++ b/library/network/uri @@ -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 = {}