lib/k8s_kit/pod.rb in k8s_kit-0.0.5 vs lib/k8s_kit/pod.rb in k8s_kit-0.0.6

- old
+ new

@@ -19,10 +19,10 @@ context.run("wait pod/#{name} --for=condition=Ready --timeout=#{timeout}") end def exit_code(container:) json_path = "{ .status.containerStatuses[?(@.name == '#{container}')].state.terminated.exitCode }" - context.run("get pod #{name} -o jsonpath=\"#{json_path}\"").to_i + Integer(context.run("get pod #{name} -o jsonpath=\"#{json_path}\"")) rescue StandardError nil end end end