lib/hako/schedulers/ecs.rb in hako-0.26.0 vs lib/hako/schedulers/ecs.rb in hako-0.27.0

- old
+ new

@@ -778,10 +778,10 @@ cmd << '--memory' << definition.fetch(:memory) definition.fetch(:links).each do |link| cmd << '--link' << link end definition.fetch(:port_mappings).each do |port_mapping| - cmd << '--publish' << "#{port_mapping.fetch(:host_port)}:#{port_mapping.fetch(:container_port)}" + cmd << '--publish' << "#{port_mapping.fetch('host_port')}:#{port_mapping.fetch('container_port')}" end definition.fetch(:docker_labels).each do |key, val| if key != 'cc.wanko.hako.version' cmd << '--label' << "#{key}=#{val}" end