mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
The HostConfig.Devices field was set to null which confused some code in ansible's podman_container module which expects this field to be an array of srtings.
17 lines
593 B
Go
17 lines
593 B
Go
--- libpod/container_inspect_freebsd.go.orig 2024-06-04 19:54:07 UTC
|
|
+++ libpod/container_inspect_freebsd.go
|
|
@@ -15,5 +15,14 @@ func (c *Container) platformInspectContainerHostConfig
|
|
// UTS namespace mode
|
|
hostConfig.UTSMode = c.NamespaceMode(spec.UTSNamespace, ctrSpec)
|
|
|
|
+ // Devices
|
|
+ // Do not include if privileged - assumed that all devices will be
|
|
+ // included.
|
|
+ var err error
|
|
+ hostConfig.Devices, err = c.GetDevices(hostConfig.Privileged, *ctrSpec, map[string]string{})
|
|
+ if err != nil {
|
|
+ return err
|
|
+ }
|
|
+
|
|
return nil
|
|
}
|