lib/k8s_kit/pod.rb in k9s_kit-0.0.7.pre.pre4 vs lib/k8s_kit/pod.rb in k9s_kit-0.0.7.pre.pre5
- old
+ new
@@ -25,9 +25,10 @@
def exit_code(container:)
json_path = "{ .status.containerStatuses[?(@.name == '#{container}')].state.terminated.exitCode }"
context.run("get pod #{name} -o jsonpath=\"#{json_path}\"").to_i
rescue StandardError
+ puts "Eek"
nil
end
end
end