mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
container.conf: support attributed string slices
All `[]string`s in containers.conf have now been migrated to attributed string slices which require some adjustments in Buildah and Podman. [NO NEW TESTS NEEDED] Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -635,8 +635,8 @@ func (c *Container) addSlirp4netnsDNS(nameservers []string) []string {
|
||||
func (c *Container) isSlirp4netnsIPv6() bool {
|
||||
if c.config.NetMode.IsSlirp4netns() {
|
||||
extraOptions := c.config.NetworkOptions[slirp4netns.BinaryName]
|
||||
options := make([]string, 0, len(c.runtime.config.Engine.NetworkCmdOptions)+len(extraOptions))
|
||||
options = append(options, c.runtime.config.Engine.NetworkCmdOptions...)
|
||||
options := make([]string, 0, len(c.runtime.config.Engine.NetworkCmdOptions.Get())+len(extraOptions))
|
||||
options = append(options, c.runtime.config.Engine.NetworkCmdOptions.Get()...)
|
||||
options = append(options, extraOptions...)
|
||||
|
||||
// loop backwards as the last argument wins and we can exit early
|
||||
|
Reference in New Issue
Block a user