Skip to content

Commit

Permalink
fixed the format string per review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Dec 5, 2022
1 parent 0911f74 commit 82d8f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/providers/nutanix/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (v *Validator) ValidateDatacenterConfig(ctx context.Context, config *anywhe

func (v *Validator) validateEndpointAndPort(dcConf anywherev1.NutanixDatacenterConfigSpec) error {
if !networkutils.IsPortValid(strconv.Itoa(dcConf.Port)) {
return fmt.Errorf("nutanix prism central port %q out of range", dcConf.Port)
return fmt.Errorf("nutanix prism central port %d out of range", dcConf.Port)
}

if dcConf.Endpoint == "" {
Expand Down

0 comments on commit 82d8f01

Please sign in to comment.