diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-06-24 14:44:42 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-06-24 14:46:50 -0400 |
commit | 6594d5d6558437d4cdb11a72eda175ead407ec75 (patch) | |
tree | c57e5e1b46eeb23605d4991b9baeb382e68fb832 /libpod/image/errors.go | |
parent | 639b809c80dc2fce76c4d24459d06c469777868f (diff) | |
download | podman-6594d5d6558437d4cdb11a72eda175ead407ec75.tar.gz podman-6594d5d6558437d4cdb11a72eda175ead407ec75.tar.bz2 podman-6594d5d6558437d4cdb11a72eda175ead407ec75.zip |
podman untag: error if tag doesn't exist
Throw an error if a specified tag does not exist. Also make sure that
the user input is normalized as we already do for `podman tag`.
To prevent regressions, add a set of end-to-end and systemd tests.
Last but not least, update the docs and add bash completions.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'libpod/image/errors.go')
-rw-r--r-- | libpod/image/errors.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/image/errors.go b/libpod/image/errors.go index 4088946cb..ddbf7be4b 100644 --- a/libpod/image/errors.go +++ b/libpod/image/errors.go @@ -12,4 +12,6 @@ var ( ErrNoSuchPod = errors.New("no such pod") // ErrNoSuchImage indicates the requested image does not exist ErrNoSuchImage = errors.New("no such image") + // ErrNoSuchTag indicates the requested image tag does not exist + ErrNoSuchTag = errors.New("no such tag") ) |