avoid nil pointer dereferencing
@@ -49,7 +49,11 @@ func (rc *AzureRedisCacheManager) Ensure(ctx context.Context, obj runtime.Object
}
instance.Status.Message = resourcemanager.SuccessMsg
instance.Status.State = string(newRc.ProvisioningState)
+
+ if newRc.StaticIP != nil {
instance.Status.Output = *newRc.StaticIP
+ }
+
instance.Status.ResourceId = *newRc.ID
instance.Status.Provisioned = true
instance.Status.Provisioning = false
