| 
				
			 | 
			
			
				
				@@ -19,7 +19,11 @@ def add_zone(container, zone): 
			 | 
		
		
	
		
			
			| 
				19
			 | 
			
				19
			 | 
			
			
				
				     out = container.exec_run(['pdnsutil', 'create-zone', zone]) 
			 | 
		
		
	
		
			
			| 
				20
			 | 
			
				20
			 | 
			
			
				
				     if out is not None: 
			 | 
		
		
	
		
			
			| 
				21
			 | 
			
				21
			 | 
			
			
				
				         out = out.decode('UTF-8') 
			 | 
		
		
	
		
			
			| 
				22
			 | 
			
				
			 | 
			
			
				
				-        return out == 'Creating empty zone \'%s\'\n' % (zone) # might to strict, but as we can not get return code 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				22
			 | 
			
			
				
				+        if out != 'Creating empty zone \'%s\'\n' % (zone): # might to strict, but as we can not get return code 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				23
			 | 
			
			
				
				+            return False 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				24
			 | 
			
			
				
				+        out = container.exec_run(['pdnsutil', 'set-kind', zone, 'master']) 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				25
			 | 
			
			
				
				+        out = out.decode('UTF-8') 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				26
			 | 
			
			
				
				+        return out == ''; 
			 | 
		
		
	
		
			
			| 
				23
			 | 
			
				27
			 | 
			
			
				
				     return False 
			 | 
		
		
	
		
			
			| 
				24
			 | 
			
				28
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				25
			 | 
			
				29
			 | 
			
			
				
				 def get_tsig_keys(container): 
			 |