Skip to content

Commit

Permalink
fixed NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx authored and jimmidyson committed Mar 19, 2024
1 parent c640904 commit 9955adb
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 9955adb

Please sign in to comment.