Fixing typo

This commit is contained in:
Rob Lee 2021-06-12 21:34:47 +01:00
parent bff556af68
commit 8fe83a0ea5

View File

@ -73,7 +73,7 @@ class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
# raise EnvironmentError("Failed because {} is not set.".format(var)) # raise EnvironmentError("Failed because {} is not set.".format(var))
config = configparser.ConfigParser() config = configparser.ConfigParser()
config.read('huawei_lte_exporter.ini') config.read('huwawei_lte_exporter.ini')
MANDATORY_ENV_VARS = ["ROUTER_ADDRESS", "ROUTER_USER", "ROUTER_PASS", "PROM_PORT"] MANDATORY_ENV_VARS = ["ROUTER_ADDRESS", "ROUTER_USER", "ROUTER_PASS", "PROM_PORT"]
for var in MANDATORY_ENV_VARS: for var in MANDATORY_ENV_VARS:
if not config.has_option('DEFAULT', var): if not config.has_option('DEFAULT', var):