浏览代码

Use CgroupString instead of missing GetCgroupAllowString in lxc_template

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Alexander Morozov 10 年之前
父节点
当前提交
c8c11bfc36
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/execdriver/lxc/lxc_template.go

+ 1 - 1
daemon/execdriver/lxc/lxc_template.go

@@ -51,7 +51,7 @@ lxc.cgroup.devices.allow = a
 lxc.cgroup.devices.deny = a
 lxc.cgroup.devices.deny = a
 #Allow the devices passed to us in the AllowedDevices list.
 #Allow the devices passed to us in the AllowedDevices list.
 {{range $allowedDevice := .AllowedDevices}}
 {{range $allowedDevice := .AllowedDevices}}
-lxc.cgroup.devices.allow = {{$allowedDevice.GetCgroupAllowString}}
+lxc.cgroup.devices.allow = {{$allowedDevice.CgroupString}}
 {{end}}
 {{end}}
 {{end}}
 {{end}}