From 89cb8245c86eaa3f8bd2aa943dcd1f1e485c3ff2 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 30 Jul 2015 22:03:31 -0400 Subject: fix namespace / local variable collision --- bin/cloud-init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/cloud-init b/bin/cloud-init index 7f21e49f..1a905b17 100755 --- a/bin/cloud-init +++ b/bin/cloud-init @@ -623,7 +623,7 @@ def main(): if name in ("modules", "init"): functor = status_wrapper - reporting = True + report_on = True if name == "init": if args.local: rname, rdesc = ("init-local", "searching for local datasources") @@ -634,9 +634,9 @@ def main(): elif name == "single": rname, rdesc = ("single/%s" % args.name, "running single module %s" % args.name) - reporting = args.report + report_on = args.report - reporter = reporting.ReportStack(rname, rdesc, reporting=reporting) + reporter = reporting.ReportStack(rname, rdesc, reporting=report_on) with reporter: return util.log_time( logfunc=LOG.debug, msg="cloud-init mode '%s'" % name, -- cgit v1.2.3