diff options
author | elijah <elijah@riseup.net> | 2013-06-20 10:11:47 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-20 10:11:47 -0700 |
commit | 213ba54117c8bc8e09754ca066fc57f6c4a33a8d (patch) | |
tree | 07c33c4da70c1d0e4e8e4a40803b99bb8fe6a18d | |
parent | 23aa42d957294b025a367c543cd99f137c48e289 (diff) |
Fixed bug when facts.json is missing.
-rw-r--r-- | lib/leap_cli/config/manager.rb | 2 |
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 ## |