modules/mu/clouds/aws.rb in cloud-mu-2.0.0.pre.alpha3 vs modules/mu/clouds/aws.rb in cloud-mu-2.0.0.pre.alpha4

- old
+ new

@@ -325,9 +325,14 @@ # Determine whether we (the Mu master, presumably) are hosted in this # cloud. # @return [Boolean] def self.hosted? + if $MU_CFG.has_key?("aws_is_hosted") + @@is_in_aws = $MU_CFG["aws_is_hosted"] + return $MU_CFG["aws_is_hosted"] + end + require 'open-uri' if !@@is_in_aws.nil? return @@is_in_aws end