rest_client.py

fixed operator
This commit is contained in:
av1nxsh 2021-03-02 14:57:05 +05:30 committed by GitHub
parent 82bf65f696
commit 95c635091e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ class FtRestClient():
def ping(self): def ping(self):
"""simple ping""" """simple ping"""
if self.show_config()['state']=="running": if self.show_config()['state'] == "running":
return {"status": "pong"} return {"status": "pong"}
else: else:
return {"status": "not_running"} return {"status": "not_running"}