diff --git a/app.py b/app.py index 55f5b80..ea728a4 100644 --- a/app.py +++ b/app.py @@ -37,7 +37,7 @@ def main(): logging.debug('Get consumer list from redis at first: Done') temp_dict = { } - hostname = socket.gethostname() + host_name = socket.gethostname() current_ip = socket.gethostbyname(host_name) for ip in ip_list: