summaryrefslogtreecommitdiff
path: root/cmd/podman/shared/funcs.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-10-08 13:46:09 -0500
committerbaude <bbaude@redhat.com>2018-10-11 09:52:53 -0500
commit255b56ae4122e25a969bbd13d8105763746d2ca7 (patch)
treee275d10256d93f6893f961dfdcd6aef18fcd6a88 /cmd/podman/shared/funcs.go
parent23c9816ba9ff1af3538dcb725d86fc565df53a30 (diff)
downloadpodman-255b56ae4122e25a969bbd13d8105763746d2ca7.tar.gz
podman-255b56ae4122e25a969bbd13d8105763746d2ca7.tar.bz2
podman-255b56ae4122e25a969bbd13d8105763746d2ca7.zip
fix runlabel functions based on QA feedback
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/shared/funcs.go')
-rw-r--r--cmd/podman/shared/funcs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/shared/funcs.go b/cmd/podman/shared/funcs.go
index 21e7fe10d..485944f29 100644
--- a/cmd/podman/shared/funcs.go
+++ b/cmd/podman/shared/funcs.go
@@ -24,10 +24,14 @@ func GenerateCommand(command, imageName, name string) []string {
newArg = imageName
case "IMAGE=IMAGE":
newArg = fmt.Sprintf("IMAGE=%s", imageName)
+ case "IMAGE=$IMAGE":
+ newArg = fmt.Sprintf("IMAGE=%s", imageName)
case "NAME":
newArg = name
case "NAME=NAME":
newArg = fmt.Sprintf("NAME=%s", name)
+ case "NAME=$NAME":
+ newArg = fmt.Sprintf("NAME=%s", name)
default:
newArg = arg
}