Skip to content

Commit

Permalink
fixing container delete issue for passive exec plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFynx committed Aug 4, 2017
1 parent 1a11027 commit 6b5161f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/plugin_container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def exec_passive(exec_data)
response = container.tap(&:start).attach(tty: true, stdout: true, logs: true)
break unless response.blank?
retry_count += 1
container.delete(force: true)
rescue Docker::Error::TimeoutError
@logger.debug("Plugin: #{@name}: #{retry_count >= 3 ? 'too many timeouts' : 'Exec timed out trying again'}")
end
end
container.delete(force: true)
response[0][0].to_s
end
end

0 comments on commit 6b5161f

Please sign in to comment.