Skip to content

Commit

Permalink
dont append a nil entry on disk usage query error
Browse files Browse the repository at this point in the history
  • Loading branch information
calvn committed Aug 29, 2019
1 parent 8beceab commit 88d08bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vault/hostinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (c *Core) CollectHostInfo() (*HostInfo, error) {
u, err := disk.Usage(part.Mountpoint)
if err != nil {
retErr = multierror.Append(retErr, &HostInfoError{err})
continue
}
usage = append(usage, u)

Expand Down

0 comments on commit 88d08bf

Please sign in to comment.