]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
Fixed bug when facts.json is missing.
authorelijah <elijah@riseup.net>
Thu, 20 Jun 2013 17:11:47 +0000 (10:11 -0700)
committerelijah <elijah@riseup.net>
Thu, 20 Jun 2013 17:11:47 +0000 (10:11 -0700)
lib/leap_cli/config/manager.rb

index 92cf1903a0a9134d5dbc404fe401fa0c629a26be..8ab8e2fc9473b979bdfd15f5943c9bfaf0c76dcb 100644 (file)
@@ -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
 
       ##