Skip to content

Commit

Permalink
Address incorrect table metric value for local mounts
Browse files Browse the repository at this point in the history
 - Reported within issue #14750 as a panic, it was identified that
   we were using the wrong value for local mounts within the table metrics.
  • Loading branch information
stevendpclark committed Mar 29, 2022
1 parent 3aed787 commit 8222783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ func (c *Core) loadMounts(ctx context.Context) error {
return err
}
if localMountTable != nil && len(localMountTable.Entries) > 0 {
c.tableMetrics(len(localMountTable.Entries), true, false, raw.Value)
c.tableMetrics(len(localMountTable.Entries), true, false, rawLocal.Value)
c.mounts.Entries = append(c.mounts.Entries, localMountTable.Entries...)
}
}
Expand Down

0 comments on commit 8222783

Please sign in to comment.