Fix go installation check on amazon instance

This commit is contained in:
Harshavardhana
2015-07-05 18:12:58 -07:00
parent 46ab20dcee
commit 75788c7a1d
2 changed files with 8 additions and 2 deletions

View File

@@ -52,7 +52,8 @@ func GetDisks() (Disks, error) {
sysFiles, err := ioutil.ReadDir(sysFSDEVICES)
if err != nil {
return Disks{}, iodine.New(err, nil)
// may be an amazon instance, ignore this
return Disks{}, nil
}
scsidevices = filterdisks(sysFiles)