mirror of
https://github.com/containers/podman.git
synced 2025-11-01 10:45:52 +08:00
Bump github.com/containers/common from 0.14.3 to 0.15.1
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.14.3 to 0.15.1. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.14.3...v0.15.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
committed by
Daniel J Walsh
parent
957e7a533e
commit
cd9d4f376d
12
vendor/github.com/containers/common/pkg/config/config_local.go
generated
vendored
12
vendor/github.com/containers/common/pkg/config/config_local.go
generated
vendored
@ -76,6 +76,18 @@ func (c *ContainersConfig) validateUlimits() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *ContainersConfig) validateTZ() error {
|
||||
if c.TZ == "local" {
|
||||
return nil
|
||||
}
|
||||
zonePath := filepath.Join("/usr/share/zoneinfo", c.TZ)
|
||||
_, err := os.Stat(zonePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Unrecognized timezone %s", zonePath)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func isRemote() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user