diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-07 08:43:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 08:43:53 -0800 |
commit | 148b4920dc9d866ce60654498af6e6bbc1d72f09 (patch) | |
tree | af89351f220b4ad8d5aa1758902533294aef1b4e /cmd/podman/shared/funcs.go | |
parent | d0b166023f0d909080f733a40a3f0606c9ad7509 (diff) | |
parent | 10a62d60a9b27626a47ab2bee00c32febb21f0e9 (diff) | |
download | podman-148b4920dc9d866ce60654498af6e6bbc1d72f09.tar.gz podman-148b4920dc9d866ce60654498af6e6bbc1d72f09.tar.bz2 podman-148b4920dc9d866ce60654498af6e6bbc1d72f09.zip |
Merge pull request #2075 from baude/runlabelname
container runlabel NAME implementation
Diffstat (limited to 'cmd/podman/shared/funcs.go')
-rw-r--r-- | cmd/podman/shared/funcs.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/shared/funcs.go b/cmd/podman/shared/funcs.go index 8770b8ec0..70d041fd2 100644 --- a/cmd/podman/shared/funcs.go +++ b/cmd/podman/shared/funcs.go @@ -65,6 +65,8 @@ func GenerateCommand(command, imageName, name string) ([]string, error) { switch arg { case "IMAGE": newArg = imageName + case "$IMAGE": + newArg = imageName case "IMAGE=IMAGE": newArg = fmt.Sprintf("IMAGE=%s", imageName) case "IMAGE=$IMAGE": @@ -75,6 +77,8 @@ func GenerateCommand(command, imageName, name string) ([]string, error) { newArg = fmt.Sprintf("NAME=%s", name) case "NAME=$NAME": newArg = fmt.Sprintf("NAME=%s", name) + case "$NAME": + newArg = name default: newArg = arg } |