modules/mu/deploy.rb in cloud-mu-3.5.1 vs modules/mu/deploy.rb in cloud-mu-3.6.3
- old
+ new
@@ -682,11 +682,10 @@
begin
MU.log "Checking whether to run #{myservice['#MUOBJECT']}.#{mode} (updating: #{@updating})", MU::DEBUG
if !@updating or mode != "create"
myservice = run_this_method.call
else
-
# XXX experimental create behavior for --liveupdate flag, only works on a couple of resource types. Inserting new resources into an old deploy is tricky.
opts = {}
if myservice["#MU_CLOUDCLASS"].cfg_name == "loadbalancer"
opts['classic'] = myservice['classic'] ? true : false
end
@@ -703,10 +702,18 @@
flags: opts,
dummy_ok: false
)
found = found.delete_if { |x|
- x.cloud_id.nil? and x.cloudobj.cloud_id.nil?
+ failed = (x.cloud_id.nil? and x.cloudobj.cloud_id.nil?)
+ if !failed
+ begin
+ failed = true if !x.cloud_desc
+ rescue StandardError
+ failed = true
+ end
+ end
+ failed
}
if found.size == 0
MU.log "#{myservice["#MU_CLOUDCLASS"].name} #{myservice['name']} not found, creating", MU::NOTICE
myservice = run_this_method.call