lib/jets/job/dsl.rb in jets-0.8.10 vs lib/jets/job/dsl.rb in jets-0.8.11
- old
+ new
@@ -64,9 +64,10 @@
def add_logical_id_counter
numbered_resources = []
n = 1
@resources.map do |definition|
logical_id = definition.keys.first
+ logical_id = logical_id.sub(/\d+$/,'')
numbered_resources << { "#{logical_id}#{n}" => definition.values.first }
n += 1
end
@resources = numbered_resources
end