Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -25,10 +25,9 @@ func Device(d *configs.Device) specs.LinuxDevice {
|
| 25 | 25 |
} |
| 26 | 26 |
|
| 27 | 27 |
func deviceCgroup(d *configs.Device) specs.LinuxDeviceCgroup {
|
| 28 |
- t := string(d.Type) |
|
| 29 | 28 |
return specs.LinuxDeviceCgroup{
|
| 30 | 29 |
Allow: true, |
| 31 |
- Type: t, |
|
| 30 |
+ Type: string(d.Type), |
|
| 32 | 31 |
Major: &d.Major, |
| 33 | 32 |
Minor: &d.Minor, |
| 34 | 33 |
Access: d.Permissions, |