fix redundant appending of infrastructure roles (#1192)
This commit is contained in:
		
							parent
							
								
									9a824c38f4
								
							
						
					
					
						commit
						b379db20ed
					
				|  | @ -341,9 +341,7 @@ func (c *Controller) getInfrastructureRole( | ||||||
| 				util.Coalesce(string(secretData[infraRole.RoleKey]), infraRole.DefaultRoleValue)) | 				util.Coalesce(string(secretData[infraRole.RoleKey]), infraRole.DefaultRoleValue)) | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if roleDescr.Valid() { | 		if !roleDescr.Valid() { | ||||||
| 			roles = append(roles, *roleDescr) |  | ||||||
| 		} else { |  | ||||||
| 			msg := "infrastructure role %q is not complete and ignored" | 			msg := "infrastructure role %q is not complete and ignored" | ||||||
| 			c.logger.Warningf(msg, roleDescr) | 			c.logger.Warningf(msg, roleDescr) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue