modules/mu/cloud.rb in cloud-mu-2.0.0.pre.alpha vs modules/mu/cloud.rb in cloud-mu-2.0.0.pre.alpha2
- old
+ new
@@ -1422,22 +1422,25 @@
end
# Wrapper for the cleanup class method of underlying cloud object implementations.
def self.cleanup(*flags)
params = flags.first
+
clouds = MU::Cloud.supportedClouds
if params[:cloud]
clouds = [params[:cloud]]
params.delete(:cloud)
end
clouds.each { |cloud|
begin
cloudclass = MU::Cloud.loadCloudType(cloud, shortname)
raise MuCloudResourceNotImplemented if !cloudclass.respond_to?(:cleanup) or cloudclass.method(:cleanup).owner.to_s != "#<Class:#{cloudclass}>"
- MU.log "Invoking #{cloudclass}.cleanup from #{shortname}", MU::DEBUG, details: flags
+if cfg_name == "habitat"
+ MU.log "Invoking #{cloudclass}.cleanup from #{shortname}", MU::WARN, details: flags
+end
cloudclass.cleanup(params)
rescue MuCloudResourceNotImplemented
- MU.log "No #{cloud} implementation of #{shortname}.cleanup, skipping", MU::DEBUG, details: flags
+ MU.log "No #{cloud} implementation of #{shortname}.cleanup, skipping", MU::WARN, details: flags
end
}
MU::MommaCat.unlockAll
end