mirror of https://github.com/containers/podman.git
Merge pull request #10318 from Luap99/fix-network-test
fix network restart always test
This commit is contained in:
commit
d8dc56ba67
|
@ -88,8 +88,9 @@ load helpers
|
|||
# Wait for container to restart
|
||||
retries=20
|
||||
while :;do
|
||||
run_podman '?' container inspect --format "{{.State.Pid}}" myweb
|
||||
if [[ $status -eq 0 ]]; then
|
||||
run_podman container inspect --format "{{.State.Pid}}" myweb
|
||||
# pid is 0 as long as the container is not running
|
||||
if [[ $output -ne 0 ]]; then
|
||||
if [[ $output == $pid ]]; then
|
||||
die "This should never happen! Restarted container has same PID ($output) as killed one!"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue