lib/mikoshi/plan/service.rb in mikoshi-0.1.3 vs lib/mikoshi/plan/service.rb in mikoshi-0.1.4
- old
+ new
@@ -24,10 +24,10 @@
@client.update_service(@data.except(:service_name))
end
def deploy_service
resp = @client.describe_services(cluster: @data[:cluster], services: [@data[:service]])
- if resp.services.empty?
+ if resp.services.empty? || resp.services.first.status == 'INACTIVE'
create_service
else
update_service
end
end