From 213ba54117c8bc8e09754ca066fc57f6c4a33a8d Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 20 Jun 2013 10:11:47 -0700 Subject: Fixed bug when facts.json is missing. --- lib/leap_cli/config/manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ## -- cgit v1.2.3