Skip to content

Commit 444bf36

Browse files
committed
fixed NPE
1 parent f15c9f4 commit 444bf36

File tree

1 file changed

+1
-0
lines changed
  • pkg/handlers/nutanix/mutation/prismcentralendpoint

1 file changed

+1
-0
lines changed

pkg/handlers/nutanix/mutation/prismcentralendpoint/inject.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (h *nutanixPrismCentralEndpoint) Mutate(
9494
"patchedObjectName", client.ObjectKeyFromObject(obj),
9595
).Info("setting prismCentralEndpoint in NutanixCluster spec")
9696

97+
obj.Spec.Template.Spec.PrismCentral = &credentials.NutanixPrismEndpoint{}
9798
obj.Spec.Template.Spec.PrismCentral.Address = prismCentralEndpointVar.Host
9899
obj.Spec.Template.Spec.PrismCentral.Port = prismCentralEndpointVar.Port
99100
obj.Spec.Template.Spec.PrismCentral.Insecure = prismCentralEndpointVar.Insecure

0 commit comments

Comments
 (0)