summaryrefslogtreecommitdiff
path: root/pkg/spec/security.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-21 21:00:16 -0400
committerGitHub <noreply@github.com>2020-10-21 21:00:16 -0400
commit2cd2359a6d9ba4135495dc9be616bb1edebb170d (patch)
tree97fc6e19db7e79683b242958b038c528eb451533 /pkg/spec/security.go
parent2bd920b00540280696d19dc95ab6e562aebd6b7d (diff)
parent33366a2cda518fafed0e72cf6e53b55abfa3c5e5 (diff)
downloadpodman-2cd2359a6d9ba4135495dc9be616bb1edebb170d.tar.gz
podman-2cd2359a6d9ba4135495dc9be616bb1edebb170d.tar.bz2
podman-2cd2359a6d9ba4135495dc9be616bb1edebb170d.zip
Merge pull request #7772 from TomSweeneyRedHat/dev/tsweeney/splitn
Convert Split() calls with an equal sign to SplitN()
Diffstat (limited to 'pkg/spec/security.go')
-rw-r--r--pkg/spec/security.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/security.go b/pkg/spec/security.go
index e152e3495..5f7db7edb 100644
--- a/pkg/spec/security.go
+++ b/pkg/spec/security.go
@@ -178,7 +178,7 @@ func (c *SecurityConfig) ConfigureGenerator(g *generate.Generator, user *UserCon
for _, opt := range c.SecurityOpts {
// Split on both : and =
- splitOpt := strings.Split(opt, "=")
+ splitOpt := strings.SplitN(opt, "=", 2)
if len(splitOpt) == 1 {
splitOpt = strings.Split(opt, ":")
}