From 87b4c0d19492b473bd93cf45a0bc8640571966b7 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. --- network/uri | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network/uri b/network/uri index f2b0ab03546..4385ea56ba4 100644 --- a/network/uri +++ b/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 = {}