Skip to content

Commit

Permalink
Clarify comment in common code for API handlers
Browse files Browse the repository at this point in the history
Clarify an unclear comment identified during review of the merge
commit for the VCH creation API feature branch.
  • Loading branch information
zjs committed Nov 8, 2017
1 parent e2486cb commit e2be073
Showing 1 changed file with 2 additions and 1 deletion.
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()

if _, err = validator.ValidateTarget(ctx, d); err != nil {
Expand Down

0 comments on commit e2be073

Please sign in to comment.