mirror of
https://github.com/containers/podman.git
synced 2025-12-10 07:42:12 +08:00
Bump containers/common to latest main
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
8
vendor/github.com/containers/common/pkg/config/config_local.go
generated
vendored
8
vendor/github.com/containers/common/pkg/config/config_local.go
generated
vendored
@@ -42,6 +42,14 @@ func (c *ContainersConfig) validateDevices() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *ContainersConfig) validateInterfaceName() error {
|
||||
if c.InterfaceName == "device" || c.InterfaceName == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf("invalid interface_name option %s", c.InterfaceName)
|
||||
}
|
||||
|
||||
func (c *ContainersConfig) validateUlimits() error {
|
||||
for _, u := range c.DefaultUlimits.Get() {
|
||||
ul, err := units.ParseUlimit(u)
|
||||
|
||||
Reference in New Issue
Block a user