From 2b87ad4ab4658b834f9cb0683ea3f7fb75781719 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 8 Oct 2015 14:08:39 -0400 Subject: grs/Interpret.py: prepare for refactoring large if clause. --- grs/Interpret.py | 10 +++++----- 1 file 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) -- cgit v1.2.3-65-gdbad