Skip to content

Commit

Permalink
govc: Change 'Maintenance Mode' printing in host.info
Browse files Browse the repository at this point in the history
Closes: #2398
  • Loading branch information
cpiment committed May 5, 2021
1 parent 867ce9e commit 6afb8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govc/host/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (r *infoResult) Write(w io.Writer) error {
fmt.Fprintf(tw, " Memory usage:\t%d MB (%.1f%%)\n", z.OverallMemoryUsage, memUsage)
fmt.Fprintf(tw, " Boot time:\t%s\n", s.Runtime.BootTime)
if s.Runtime.InMaintenanceMode {
fmt.Fprint(tw, " State: Maintenance Mode")
fmt.Fprint(tw, " State:\tMaintenance Mode\n")
} else {
fmt.Fprintf(tw, " State:\t%s\n", s.Runtime.ConnectionState)
}
Expand Down

0 comments on commit 6afb8ff

Please sign in to comment.