summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-06-24 14:44:42 +0200
committerMatthew Heon <mheon@redhat.com>2020-06-24 14:46:50 -0400
commit6594d5d6558437d4cdb11a72eda175ead407ec75 (patch)
treec57e5e1b46eeb23605d4991b9baeb382e68fb832 /libpod/define
parent639b809c80dc2fce76c4d24459d06c469777868f (diff)
downloadpodman-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/define')
-rw-r--r--libpod/define/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go
index e0c9811fe..98dc603d1 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -17,6 +17,9 @@ var (
// ErrNoSuchImage indicates the requested image does not exist
ErrNoSuchImage = image.ErrNoSuchImage
+ // ErrNoSuchTag indicates the requested image tag does not exist
+ ErrNoSuchTag = image.ErrNoSuchTag
+
// ErrNoSuchVolume indicates the requested volume does not exist
ErrNoSuchVolume = errors.New("no such volume")