mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #58327 from sharmaansh/patch-2
Automatic merge from submit-queue (batch tested with PRs 58920, 58327, 60577, 49388, 62306). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Replace error string with const
This commit is contained in:
		@@ -1375,8 +1375,7 @@ func (c *Cloud) ensureSSLNegotiationPolicy(loadBalancer *elb.LoadBalancerDescrip
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		if aerr, ok := err.(awserr.Error); ok {
 | 
			
		||||
			switch aerr.Code() {
 | 
			
		||||
			case "PolicyNotFound":
 | 
			
		||||
				// TODO change from string to `elb.ErrCodePolicyNotFoundException` once the AWS SDK is updated
 | 
			
		||||
			case elb.ErrCodePolicyNotFoundException:
 | 
			
		||||
			default:
 | 
			
		||||
				return fmt.Errorf("error describing security policies on load balancer: %q", err)
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user