summaryrefslogtreecommitdiff
path: root/cmd/podman/shared/funcs.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-10-11 09:58:59 -0700
committerGitHub <noreply@github.com>2018-10-11 09:58:59 -0700
commitb5f4bb15a5569ba6cf3517c3c979c75ad205ada5 (patch)
tree0cec72e2fbd86156683b2ab19e7a1587a1c17380 /cmd/podman/shared/funcs.go
parent9e1cdd56d4bdcb04da01d683d5c78d4d3e059d26 (diff)
parent255b56ae4122e25a969bbd13d8105763746d2ca7 (diff)
downloadpodman-b5f4bb15a5569ba6cf3517c3c979c75ad205ada5.tar.gz
podman-b5f4bb15a5569ba6cf3517c3c979c75ad205ada5.tar.bz2
podman-b5f4bb15a5569ba6cf3517c3c979c75ad205ada5.zip
Merge pull request #1607 from baude/runlabelfixes
fix runlabel functions based on QA feedback
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
}