Merge pull request #6184 from hashicorp/dani/fix-api

api: Fix definition of HostVolumeInfo
This commit is contained in:
Danielle 2019-08-22 00:13:28 +02:00 committed by GitHub
commit c280e97619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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))
}