summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-20 10:11:47 -0700
committerelijah <elijah@riseup.net>2013-06-20 10:11:47 -0700
commit213ba54117c8bc8e09754ca066fc57f6c4a33a8d (patch)
tree07c33c4da70c1d0e4e8e4a40803b99bb8fe6a18d /lib
parent23aa42d957294b025a367c543cd99f137c48e289 (diff)
Fixed bug when facts.json is missing.
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/config/manager.rb b/lib/leap_cli/config/manager.rb
index 92cf190..8ab8e2f 100644
--- a/lib/leap_cli/config/manager.rb
+++ b/lib/leap_cli/config/manager.rb
@@ -19,7 +19,7 @@ module LeapCli
attr_reader :services, :tags, :nodes, :provider, :common, :secrets
def facts
- @facts ||= JSON.parse(Util.read_file(:facts) || {})
+ @facts ||= JSON.parse(Util.read_file(:facts) || "{}")
end
##