modules/mu/config.rb in cloud-mu-2.0.0.pre.beta2 vs modules/mu/config.rb in cloud-mu-2.0.0.pre.beta3

- old
+ new

@@ -154,10 +154,12 @@ rescue LoadError => e next end res_class = Object.const_get("MU").const_get("Cloud").const_get(cloud).const_get(classname) required, res_schema = res_class.schema(self) + docschema["properties"][attrs[:cfg_plural]]["items"]["description"] ||= "" + docschema["properties"][attrs[:cfg_plural]]["items"]["description"] += "\n#\n# `#{cloud}`: "+res_class.quality res_schema.each { |key, cfg| if !docschema["properties"][attrs[:cfg_plural]]["items"]["properties"][key] only_children[attrs[:cfg_plural]] ||= {} only_children[attrs[:cfg_plural]][key] ||= {} only_children[attrs[:cfg_plural]][key][cloud] = cfg @@ -883,9 +885,19 @@ classobj = Object.const_get("MU").const_get("Cloud").const_get(descriptor["cloud"]) valid_regions = classobj.listRegions if !valid_regions.include?(descriptor["region"]) MU.log "Known regions for cloud '#{descriptor['cloud']}' do not include '#{descriptor["region"]}'", MU::ERR, details: valid_regions ok = false + end + end + + if descriptor['project'] + if haveLitterMate?(descriptor['project'], "habitats") + descriptor['dependencies'] ||= [] + descriptor['dependencies'] << { + "type" => "habitat", + "name" => descriptor['project'] + } end end # Does this resource go in a VPC? if !descriptor["vpc"].nil? and !delay_validation