Skip to content

Commit

Permalink
Review feedback, thanks @matthchr
Browse files Browse the repository at this point in the history
  • Loading branch information
babbageclunk committed Apr 6, 2021
1 parent d26936f commit 9544c53
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func (rc *AzureRedisCacheManager) Ensure(ctx context.Context, obj runtime.Object
instance.Status.Message = err.Error()
return false, err
}
instance.Status.State = string(newRc.ProvisioningState)

if newRc.StaticIP != nil {
instance.Status.Output = *newRc.StaticIP
}

instance.Status.ResourceId = *newRc.ID
instance.Status.State = string(newRc.ProvisioningState)
instance.Status.SetProvisioned(resourcemanager.SuccessMsg)
return true, nil
}
Expand Down Expand Up @@ -90,8 +90,6 @@ func (rc *AzureRedisCacheManager) Ensure(ctx context.Context, obj runtime.Object
instance.Status.SetProvisioning("RedisCache exists but may not be ready")
return false, nil
} else if helpers.ContainsString(catchKnownError, azerr.Type) {
// TODO: Not sure why we want this to be provisioning=false?
instance.Status.Provisioning = false
return false, nil
} else {
// serious error occured, end reconcilliation and mark it as failed
Expand Down

0 comments on commit 9544c53

Please sign in to comment.