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:
dependabot-preview[bot]
2020-07-01 09:54:06 +00:00
committed by Daniel J Walsh
parent 957e7a533e
commit cd9d4f376d
9 changed files with 69 additions and 22 deletions

View File

@ -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
}