Skip to content

Commit

Permalink
Merge pull request containers#8557 from baude/mountcommas
Browse files Browse the repository at this point in the history
add commas between mount options
  • Loading branch information
openshift-merge-robot authored Dec 2, 2020
2 parents e82ec90 + ccc0201 commit 2e55543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/podman/common/create_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, cgroup
for _, m := range cc.HostConfig.Mounts {
mount := fmt.Sprintf("type=%s", m.Type)
if len(m.Source) > 0 {
mount += fmt.Sprintf("source=%s", m.Source)
mount += fmt.Sprintf(",source=%s", m.Source)
}
if len(m.Target) > 0 {
mount += fmt.Sprintf("dest=%s", m.Target)
mount += fmt.Sprintf(",dst=%s", m.Target)
}
mounts = append(mounts, mount)
}
Expand Down

0 comments on commit 2e55543

Please sign in to comment.