server: adhere to CRI for sandbox stop/remove
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
00444753e7
commit
9f68cb4507
9 changed files with 226 additions and 30 deletions
|
@ -247,7 +247,7 @@ function cleanup_ctrs() {
|
|||
if [ "$output" != "" ]; then
|
||||
printf '%s\n' "$output" | while IFS= read -r line
|
||||
do
|
||||
crioctl ctr stop --id "$line" || true
|
||||
crioctl ctr stop --id "$line"
|
||||
crioctl ctr remove --id "$line"
|
||||
done
|
||||
fi
|
||||
|
@ -272,7 +272,7 @@ function cleanup_pods() {
|
|||
if [ "$output" != "" ]; then
|
||||
printf '%s\n' "$output" | while IFS= read -r line
|
||||
do
|
||||
crioctl pod stop --id "$line" || true
|
||||
crioctl pod stop --id "$line"
|
||||
crioctl pod remove --id "$line"
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue