Use arg cgroupRoot,not nodeConfig.CgroupRoot

Using both arg cgroupRoot and nodeConfig.CgroupRoot is confused in function NewQOSContainerManager

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
pull/6/head
yanxuean 2017-09-25 15:19:20 +08:00
parent e5fb3d7108
commit 45146cff4e
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ type qosContainerManagerImpl struct {
func NewQOSContainerManager(subsystems *CgroupSubsystems, cgroupRoot string, nodeConfig NodeConfig) (QOSContainerManager, error) {
if !nodeConfig.CgroupsPerQOS {
return &qosContainerManagerNoop{
cgroupRoot: CgroupName(nodeConfig.CgroupRoot),
cgroupRoot: CgroupName(cgroupRoot),
}, nil
}