Skip to content

Commit

Permalink
Make Hound happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wurm committed Mar 22, 2019
1 parent f5a5f78 commit bb8c2d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/linux/machineid.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ import (
var (
// Possible (current and historic) locations of the machine-id file.
// These will be searched in order.
machineIdFiles = []string{"/etc/machine-id", "/var/lib/dbus/machine-id", "/var/db/dbus/machine-id"}
machineIDFiles = []string{"/etc/machine-id", "/var/lib/dbus/machine-id", "/var/db/dbus/machine-id"}
)

func MachineID() (string, error) {
var contents []byte
var err error

for _, file := range machineIdFiles {
for _, file := range machineIDFiles {
contents, err = ioutil.ReadFile(file)
if err != nil {
if os.IsNotExist(err) {
Expand Down

0 comments on commit bb8c2d7

Please sign in to comment.