Skip to content

Commit

Permalink
fixed NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Mar 18, 2024
1 parent f15c9f4 commit 444bf36
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func (h *nutanixPrismCentralEndpoint) Mutate(
"patchedObjectName", client.ObjectKeyFromObject(obj),
).Info("setting prismCentralEndpoint in NutanixCluster spec")

obj.Spec.Template.Spec.PrismCentral = &credentials.NutanixPrismEndpoint{}
obj.Spec.Template.Spec.PrismCentral.Address = prismCentralEndpointVar.Host
obj.Spec.Template.Spec.PrismCentral.Port = prismCentralEndpointVar.Port
obj.Spec.Template.Spec.PrismCentral.Insecure = prismCentralEndpointVar.Insecure
Expand Down

0 comments on commit 444bf36

Please sign in to comment.