Moved finished-msg
This commit is contained in:
		
							parent
							
								
									8270b9ba83
								
							
						
					
					
						commit
						002e2e4613
					
				@ -135,11 +135,13 @@ def updateNsData(zone):
 | 
				
			|||||||
        adaptFileForRequire(zone, dumpFile)
 | 
					        adaptFileForRequire(zone, dumpFile)
 | 
				
			||||||
        if dnscontrolPush(zone) != 0:
 | 
					        if dnscontrolPush(zone) != 0:
 | 
				
			||||||
            raise Exception("Pushing data failed!")
 | 
					            raise Exception("Pushing data failed!")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        log.info(f'{adaptedZone} |\tFinished')
 | 
				
			||||||
    except:
 | 
					    except:
 | 
				
			||||||
        log.error(f'{adaptedZone} |\t{sys.exc_info()}')
 | 
					        log.error(f'{adaptedZone} |\t{sys.exc_info()}')
 | 
				
			||||||
        log.error(f'{adaptedZone} |\tUpdating NS-Data failed!')
 | 
					        log.error(f'{adaptedZone} |\tUpdating NS-Data failed!')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    log.info(f'{adaptedZone} |\tFinished')
 | 
					    
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
def adaptZoneName(zone):
 | 
					def adaptZoneName(zone):
 | 
				
			||||||
    if config['zone']['public-suffix'] != "" and zone.endswith(config['zone']['public-suffix']):
 | 
					    if config['zone']['public-suffix'] != "" and zone.endswith(config['zone']['public-suffix']):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user