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