diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-09 10:18:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 10:18:28 -0400 |
commit | 81bc0395ad67bcaa436bc9067a64efc5dcc02683 (patch) | |
tree | 2a226735a7d4da9deff8c12d3ba405d1cb4afd81 /pkg | |
parent | 21cfcc4b3b19273a26cd4bb78072061109b1ed42 (diff) | |
parent | 9b8aaf88e70be9d51c11bce43c24c5d765dd2973 (diff) | |
download | podman-81bc0395ad67bcaa436bc9067a64efc5dcc02683.tar.gz podman-81bc0395ad67bcaa436bc9067a64efc5dcc02683.tar.bz2 podman-81bc0395ad67bcaa436bc9067a64efc5dcc02683.zip |
Merge pull request #7571 from vrothberg/fix-7157
generate systemd: catch `--name=foo`
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/systemd/generate/containers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/systemd/generate/containers.go b/pkg/systemd/generate/containers.go index caf5de357..a4fdae46e 100644 --- a/pkg/systemd/generate/containers.go +++ b/pkg/systemd/generate/containers.go @@ -220,6 +220,9 @@ func executeContainerTemplate(info *containerInfo, options entities.GenerateSyst case "--replace": hasReplaceParam = true } + if strings.HasPrefix(p, "--name=") { + hasNameParam = true + } } if !hasDetachParam { |