Commit 38e8d04
committed
pkg/podman/podman, cmd/rmi: Change return values of IsToolboxImage()
The original version of the IsToolboxImage() function in
pkg/podman/podman.go returned an error when an image was not
compatible with Toolbx.
The new version returns 'false' without error on a non-Toolbx
container, so it can be distinguished when the image inspection
actually fails.
This new behavior is used in detecting such images when creating
or running Toolbx containers: f06a8191 parent f06a819 commit 38e8d04
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
0 commit comments