aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/leap_cli/util.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb
index 3bfb66b..909dc0a 100644
--- a/lib/leap_cli/util.rb
+++ b/lib/leap_cli/util.rb
@@ -83,8 +83,9 @@ module LeapCli
def assert_config!(conf_path)
value = nil
begin
- value = eval(conf_path, manager.send(:binding))
+ value = manager.instance_eval(conf_path)
rescue NoMethodError
+ rescue NameError
end
assert! value, "* Error: Nothing set for #{conf_path}"
end