Skip to content

Commit

Permalink
Merge pull request #3393 from jlehtnie/snapshot-tree-json-to-stdout
Browse files Browse the repository at this point in the history
govc: snapshot.tree json output to stdout
  • Loading branch information
dougm authored Mar 21, 2024
2 parents 3cad08c + 27824cf commit b310f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govc/vm/snapshot/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (cmd *tree) writeJson(vm mo.VirtualMachine) {
SnapshotRecords = append(SnapshotRecords, cmd.makeSnapshotRecord(vm, rootSnapshot, nil))
}
b, _ := json.MarshalIndent(SnapshotRecords, "", " ")
println(string(b))
fmt.Println(string(b))

}
func (cmd *tree) write(level int, parent string, pref *types.ManagedObjectReference, st []types.VirtualMachineSnapshotTree) {
Expand Down

0 comments on commit b310f54

Please sign in to comment.