Skip to content

Commit

Permalink
fix: support govc ls -xml flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Mar 27, 2023
1 parent a453458 commit 4ed0763
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion govc/ls/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (cmd *ls) Run(ctx context.Context, f *flag.FlagSet) error {
}

type listResult struct {
*ls `json:"-"`
*ls `json:"-" xml:"-"`
Elements []list.Element `json:"elements"`
}

Expand Down
3 changes: 3 additions & 0 deletions govc/test/ls.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ load test_helper
run govc ls -json
assert_success

run govc ls -xml
assert_success

# list entire inventory
run govc ls '/**'
assert_success
Expand Down

0 comments on commit 4ed0763

Please sign in to comment.