mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
api: Fix definition of HostVolumeInfo
This commit is contained in:
@@ -438,7 +438,7 @@ type DriverInfo struct {
|
||||
|
||||
// HostVolumeInfo is used to return metadata about a given HostVolume.
|
||||
type HostVolumeInfo struct {
|
||||
Source string
|
||||
Path string
|
||||
ReadOnly bool
|
||||
Hidden bool
|
||||
}
|
||||
|
||||
@@ -490,7 +490,7 @@ func (c *NodeStatusCommand) outputNodeVolumeInfo(node *api.Node) {
|
||||
|
||||
for _, volName := range names {
|
||||
info := node.HostVolumes[volName]
|
||||
output = append(output, fmt.Sprintf("%s|%v|%v|%s", volName, info.ReadOnly, info.Hidden, info.Source))
|
||||
output = append(output, fmt.Sprintf("%s|%v|%v|%s", volName, info.ReadOnly, info.Hidden, info.Path))
|
||||
}
|
||||
c.Ui.Output(formatList(output))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user