Skip to content

Commit

Permalink
Merge pull request #41 from estesp/update-travis-go
Browse files Browse the repository at this point in the history
Update Go versions for travis
  • Loading branch information
crosbymichael committed Mar 9, 2018
2 parents bf7d89f + 0a357bb commit c755602
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,6 +1,7 @@
language: go
go:
- 1.8.x
- 1.10.x
- tip

install:
- mkdir -p $GOPATH/src/github.com/prometheus $GOPATH/src/github.com/opencontainers
Expand Down
6 changes: 3 additions & 3 deletions devices.go
Expand Up @@ -74,11 +74,11 @@ func (d *devicesController) Update(path string, resources *specs.LinuxResources)
}

func deviceString(device specs.LinuxDeviceCgroup) string {
return fmt.Sprintf("%c %s:%s %s",
&device.Type,
return fmt.Sprintf("%s %s:%s %s",
device.Type,
deviceNumber(device.Major),
deviceNumber(device.Minor),
&device.Access,
device.Access,
)
}

Expand Down

0 comments on commit c755602

Please sign in to comment.