diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-07-31 20:31:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-31 20:31:04 +0200 |
| commit | 49f9ec8f637525c79b3b54a747bae33d94f390bd (patch) | |
| tree | 5440c2a34b1b0f8b92b8399fe2764719a56380b0 /src | |
| parent | 8c34aa09954f4b266478d48d8a0256e695f4e666 (diff) | |
| parent | 318eaf2bfdb81d7cf2e31fe9c7b6e215e3522e77 (diff) | |
| download | vyos-1x-49f9ec8f637525c79b3b54a747bae33d94f390bd.tar.gz vyos-1x-49f9ec8f637525c79b3b54a747bae33d94f390bd.zip | |
Merge pull request #4640 from c-po/del-container-fix
op-mode: T7403: fix image deletion when a single image ID is provided
Diffstat (limited to 'src')
| -rwxr-xr-x | src/op_mode/container.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/op_mode/container.py b/src/op_mode/container.py index feb9f41cc..2dc7ce4ec 100755 --- a/src/op_mode/container.py +++ b/src/op_mode/container.py @@ -76,6 +76,9 @@ def delete_image(name: str, force: typing.Optional[bool] = False): name = name.replace('\n', ' ') # convert to list name = name.split() + else: + # convert str -> list for further processing down the line + name = [name] for image in name: # convert the truncated image ID to a full image ID |
