aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-10-08 14:08:39 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-10-08 14:08:39 -0400
commit2b87ad4ab4658b834f9cb0683ea3f7fb75781719 (patch)
treea8a60e4a90b3a775906fa09b7be7b376d9a2cd56
parentlint: rename internal variables. (diff)
downloadgrss-2b87ad4ab4658b834f9cb0683ea3f7fb75781719.tar.gz
grss-2b87ad4ab4658b834f9cb0683ea3f7fb75781719.tar.bz2
grss-2b87ad4ab4658b834f9cb0683ea3f7fb75781719.zip
grs/Interpret.py: prepare for refactoring large if clause.
-rw-r--r--grs/Interpret.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/grs/Interpret.py b/grs/Interpret.py
index 4e411fd..072574e 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -79,7 +79,7 @@ class Interpret(Daemon):
sys.exit(signum + 128)
- def smartlog(_log, obj, has_obj=True):
+ def smartlog(_log, obj, has_obj):
""" This logs whether or not we have a grammatically incorrect
directive, or we are doing a mock run, and returns whether
or not we should execute the directive:
@@ -202,7 +202,7 @@ class Interpret(Daemon):
stampit(progress)
continue
if verb == 'log':
- if smartlog(_line, obj):
+ if smartlog(_line, obj, True):
stampit(progress)
continue
if obj == 'stamp':
@@ -220,17 +220,17 @@ class Interpret(Daemon):
continue
_md.umount_all()
elif verb == 'populate':
- if smartlog(_line, obj):
+ if smartlog(_line, obj, True):
stampit(progress)
continue
_po.populate(cycle=int(obj))
elif verb == 'runscript':
- if smartlog(_line, obj):
+ if smartlog(_line, obj, True):
stampit(progress)
continue
_ru.runscript(obj)
elif verb == 'pivot':
- if smartlog(_line, obj):
+ if smartlog(_line, obj, True):
stampit(progress)
continue
_pc.pivot(obj, _md)