mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	lf_check.py : script clean up
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		@@ -46,16 +46,8 @@ sys.path.append('/')
 | 
				
			|||||||
CONFIG_FILE = os.getcwd() + '/lf_check_config.ini'    
 | 
					CONFIG_FILE = os.getcwd() + '/lf_check_config.ini'    
 | 
				
			||||||
RUN_CONDITION = 'ENABLE'
 | 
					RUN_CONDITION = 'ENABLE'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# setup logging
 | 
					# setup logging FORMAT
 | 
				
			||||||
FORMAT = '%(asctime)s %(name)s %(levelname)s: %(message)s'
 | 
					FORMAT = '%(asctime)s %(name)s %(levelname)s: %(message)s'
 | 
				
			||||||
#logger = logging.getLogger('Throughput_Test')
 | 
					 | 
				
			||||||
#logger.setLevel(logging.INFO)
 | 
					 | 
				
			||||||
#hdlr = logging.FileHandler(local_dir+"/Throughput_Testing.log")
 | 
					 | 
				
			||||||
#formatter = logging.Formatter('%(asctime)s %(name)s %(levelname)s %(message)s')
 | 
					 | 
				
			||||||
#hdlr.setFormatter(formatter)
 | 
					 | 
				
			||||||
#logger.addHandler(hdlr)
 | 
					 | 
				
			||||||
#logger.setLevel(logging.INFO)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class lf_check():
 | 
					class lf_check():
 | 
				
			||||||
    def __init__(self,
 | 
					    def __init__(self,
 | 
				
			||||||
@@ -139,10 +131,7 @@ class lf_check():
 | 
				
			|||||||
        config_file = configparser.ConfigParser()
 | 
					        config_file = configparser.ConfigParser()
 | 
				
			||||||
        success = True
 | 
					        success = True
 | 
				
			||||||
        success = config_file.read(CONFIG_FILE)
 | 
					        success = config_file.read(CONFIG_FILE)
 | 
				
			||||||
        #print("{}".format(success))
 | 
					 | 
				
			||||||
        #print("{}".format(config_file))
 | 
					 | 
				
			||||||
        self.logger.info("logger worked")
 | 
					        self.logger.info("logger worked")
 | 
				
			||||||
        exit(1)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if 'LF_MGR' in config_file.sections():
 | 
					        if 'LF_MGR' in config_file.sections():
 | 
				
			||||||
            section = config_file['LF_MGR']
 | 
					            section = config_file['LF_MGR']
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user