modules/mu/deploy.rb in cloud-mu-3.2.0 vs modules/mu/deploy.rb in cloud-mu-3.3.0
- old
+ new
@@ -310,10 +310,21 @@
t.join
end
@mommacat.save!
+ # XXX Functions have a special behavior where we re-invoke their groom
+ # methods one more time at the end, so we can guarantee their
+ # environments are fully populated with all sibling resource idents
+ # regardless of dependency order. This is, obviously, a disgusting
+ # hack, and we should revisit our dependency language in the next big
+ # release.
+ if !@main_config["functions"].nil? and
+ @main_config["functions"].size > 0
+ createResources(@main_config["functions"], "groom")
+ end
+
rescue StandardError => e
MU.log e.class.name, MU::ERR, details: caller
@my_threads.each do |t|
if t.object_id != Thread.current.object_id and
@@ -731,10 +742,12 @@
end
@my_threads.reject! { |thr| !thr.alive? }
sleep 10+Random.rand(20)
retry
end
+
end
+
end
end #class
end #module