Store verbosity level in environment variable

Pre- and post-flight scripts can use verbosity level from managedinstall
This commit is contained in:
Arjen van Bochoven
2014-06-23 23:33:04 +02:00
parent b431eb4d18
commit 62986bac54
+4 -1
View File
@@ -549,7 +549,10 @@ def main():
# set munkicommon globals
munkicommon.munkistatusoutput = options.munkistatusoutput
munkicommon.verbose = options.verbose
# Set environment variable for verbosity
os.environ['VERBOSE'] = str(options.verbose)
if options.installonly:
# we're only installing, not checking, so we should copy
# some report values from the prior run