|  |  | @ -150,6 +150,14 @@ class decort_lb(DecortController): | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if d_state != '': |  |  |  |         if d_state != '': | 
			
		
	
		
		
			
				
					
					|  |  |  |             self.lb_state(self.lb_facts, d_state) |  |  |  |             self.lb_state(self.lb_facts, d_state) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             _, self.lb_facts = self._lb_get_by_id(lb_id=self.lb_id) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (d_state == 'enabled' and | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 self.lb_facts.get('status') == 'ENABLED' and | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 self.lb_facts.get('techStatus') == 'STOPPED'): | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             self.lb_state(self.lb_facts, 'started') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             _, self.lb_facts = self._lb_get_by_id(lb_id=self.lb_id) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return |  |  |  |         return | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     def delete(self): |  |  |  |     def delete(self): | 
			
		
	
	
		
		
			
				
					|  |  | @ -306,22 +314,22 @@ def main(): | 
			
		
	
		
		
			
				
					
					|  |  |  |         elif decon.lb_facts['status'] == "DISABLED": |  |  |  |         elif decon.lb_facts['status'] == "DISABLED": | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if amodule.params['state'] == 'absent': |  |  |  |                 if amodule.params['state'] == 'absent': | 
			
		
	
		
		
			
				
					
					|  |  |  |                     decon.delete() |  |  |  |                     decon.delete() | 
			
		
	
		
		
			
				
					
					|  |  |  |                 elif amodule.params['state'] in ('present', 'disabled'): |  |  |  |                 elif amodule.params['state'] == 'disabled': | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     decon.action() |  |  |  |                     decon.action() | 
			
		
	
		
		
			
				
					
					|  |  |  |                 elif amodule.params['state'] == 'enabled': |  |  |  |                 elif amodule.params['state'] in ('enabled', 'present'): | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     decon.action('enabled') |  |  |  |                     decon.action('enabled') | 
			
		
	
		
		
			
				
					
					|  |  |  |         elif decon.lb_facts['status'] in ["CREATED", "ENABLED"]: |  |  |  |         elif decon.lb_facts['status'] in ["CREATED", "ENABLED"]: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if amodule.params['state'] == 'absent': |  |  |  |                 if amodule.params['state'] == 'absent': | 
			
		
	
		
		
			
				
					
					|  |  |  |                     decon.delete() |  |  |  |                     decon.delete() | 
			
		
	
		
		
			
				
					
					|  |  |  |                 elif amodule.params['state'] in ('present', 'enabled'): |  |  |  |                 elif amodule.params['state'] in ('present', 'enabled'): | 
			
		
	
		
		
			
				
					
					|  |  |  |                     decon.action() |  |  |  |                     decon.action(d_state='enabled') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 elif amodule.params['state'] == 'disabled': |  |  |  |                 elif amodule.params['state'] == 'disabled': | 
			
		
	
		
		
			
				
					
					|  |  |  |                     decon.action('disabled') |  |  |  |                     decon.action('disabled') | 
			
		
	
		
		
			
				
					
					|  |  |  |                 elif amodule.params['state'] in ('stopped', 'started','restart'): |  |  |  |                 elif amodule.params['state'] in ('stopped', 'started','restart'): | 
			
		
	
		
		
			
				
					
					|  |  |  |                     decon.action(amodule.params['state']) |  |  |  |                     decon.action(amodule.params['state']) | 
			
		
	
		
		
			
				
					
					|  |  |  |         elif decon.lb_facts['status'] == "DELETED": |  |  |  |         elif decon.lb_facts['status'] == "DELETED": | 
			
		
	
		
		
			
				
					
					|  |  |  |             if amodule.params['state'] in ['present', 'enabled']: |  |  |  |             if amodule.params['state'] in ['present', 'enabled']: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 decon.action(d_state='started', restore=True) |  |  |  |                 decon.action(d_state='enabled', restore=True) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             elif (amodule.params['state'] == 'absent' and |  |  |  |             elif (amodule.params['state'] == 'absent' and | 
			
		
	
		
		
			
				
					
					|  |  |  |                   amodule.params['permanently']): |  |  |  |                   amodule.params['permanently']): | 
			
		
	
		
		
			
				
					
					|  |  |  |                 decon.delete() |  |  |  |                 decon.delete() | 
			
		
	
	
		
		
			
				
					|  |  | 
 |