Adjust critical flag
This commit is contained in:
		
							parent
							
								
									627bb51a0c
								
							
						
					
					
						commit
						bd0cd62151
					
				| 
						 | 
				
			
			@ -125,9 +125,13 @@ func (c *Cluster) applyActions(actions []Action) (err error) {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	for action := range uniqueActions {
 | 
			
		||||
		if dontStop, err := action.process(); err != nil && !dontStop {
 | 
			
		||||
		if critical, err := action.process(); err != nil {
 | 
			
		||||
			c.logger.Errorf("Can't apply action %s: %v", action.name(), err)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if critical == true {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue