daemon: un-export VerifyCgroupDriver()
it's only used internally, so no need to export Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a506630e57
commit
95d69658be
1 changed files with 3 additions and 3 deletions
|
@ -621,8 +621,8 @@ func getCD(config *config.Config) string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// VerifyCgroupDriver validates native.cgroupdriver
|
||||
func VerifyCgroupDriver(config *config.Config) error {
|
||||
// verifyCgroupDriver validates native.cgroupdriver
|
||||
func verifyCgroupDriver(config *config.Config) error {
|
||||
cd := getCD(config)
|
||||
if cd == "" || cd == cgroupFsDriver || cd == cgroupSystemdDriver {
|
||||
return nil
|
||||
|
@ -768,7 +768,7 @@ func verifyDaemonSettings(conf *config.Config) error {
|
|||
if !conf.BridgeConfig.EnableIPTables && conf.BridgeConfig.EnableIPMasq {
|
||||
conf.BridgeConfig.EnableIPMasq = false
|
||||
}
|
||||
if err := VerifyCgroupDriver(conf); err != nil {
|
||||
if err := verifyCgroupDriver(conf); err != nil {
|
||||
return err
|
||||
}
|
||||
if conf.CgroupParent != "" && UsingSystemd(conf) {
|
||||
|
|
Loading…
Reference in a new issue