From: Thierry Parmentelat Date: Mon, 21 May 2012 14:46:02 +0000 (+0200) Subject: dry_run might be undefined in options X-Git-Tag: tests-5.1-4~12 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0d1181548b8fc5297b4d026f508581014951d17c;p=tests.git dry_run might be undefined in options --- diff --git a/system/utils.py b/system/utils.py index d6938bf..cc03318 100644 --- a/system/utils.py +++ b/system/utils.py @@ -23,7 +23,7 @@ def pprint(message,spec,depth=2): def system(command,background=False,silent=False): - if options.dry_run: + if getattr(options,'dry_run',None): print 'dry_run:',command return 0