Skip to content

Commit

Permalink
Merge pull request #6184 from hashicorp/dani/fix-api
Browse files Browse the repository at this point in the history
api: Fix definition of HostVolumeInfo
  • Loading branch information
endocrimes authored Aug 21, 2019
2 parents 36d5fb3 + 282b672 commit 30da2b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion command/node_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 30da2b8

Please sign in to comment.