Closed sushain97 closed 10 months ago
I can report that this PR fixes #277 in my environment, on both x86_64 and aarch64 Nomad 1.6.1
clients with Podman 4.6.0-1
. Thanks for your quick response @sushain97 :muscle:
@sushain97 check the linter failure
==> Linting source code ...
Error: api/container_stats.go:52:5: shadow: declaration of "err" shadows declaration at line 22 (govet)
if err := json.Unmarshal(body, &errResponse); err == nil && errResponse.Cause == "container is stopped" {
^
make: *** [GNUmakefile:32: check] Error 1
@shoenig fixed
@lgfa29 does this look good?
@sushain97 I think your fix has a compilation bug:
if _ := json.Unmarshal(body, &errResponse); ...{
needs to be
if _ = json.Unmarshal(body, &errResponse); ... {
@shoenig fixed - the suggestion wasn't quite right.
Would be helpful to have workflows approved for the entire branch/PR :)
No problem! Would it be possible to cut a 0.5.1 release with this fix?
Fixes https://github.com/hashicorp/nomad-driver-podman/issues/277