Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/apiservers/service/restapi/handlers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ func validateTarget(ctx context.Context, d *data.Data) (*validate.Validator, err
if err != nil {
return nil, fmt.Errorf("Validation Error: %s", err)
}
// If dc is not set, and multiple datacenter is available, vic-machine ls will list VCHs under all datacenters.

// If dc is not set, and multiple datacenters are available, operate on all datacenters.
validator.AllowEmptyDC()

_, err = validator.ValidateTarget(ctx, d)
Expand Down