summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/object.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb
index 6f30fe9..b8b3c38 100644
--- a/lib/leap_cli/config/object.rb
+++ b/lib/leap_cli/config/object.rb
@@ -393,6 +393,14 @@ module LeapCli
end
def evaluate_now(key, value)
+ if LeapCli.log_level >= 2
+ @node.instance_eval(value)
+ else
+ evaluate_now!(key, value)
+ end
+ end
+
+ def evaluate_now!(key, value)
return @node.instance_eval(value)
rescue SystemStackError => exc
Util::log 0, :error, "while evaluating node '#{@node.name}'"