diff --git a/logpingresult.py b/logpingresult.py index 1a9e086..3039cb8 100644 --- a/logpingresult.py +++ b/logpingresult.py @@ -19,7 +19,7 @@ infdbpass = os.environ["INFLUX_PASSWORD"] influxuri = os.environ["INFLUX_URI"] pingaddresses = os.environ["PING_HOSTS"].split(",") while(True): - if len(pingaddresses>0): + if len(pingaddresses) > 0: print(pingaddresses) for ip in pingaddresses: print(ip)