rest_client.py

flake8 issues
This commit is contained in:
av1nxsh 2021-03-02 14:49:33 +05:30 committed by GitHub
parent 4fe2e542b4
commit 82bf65f696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -176,12 +176,11 @@ class FtRestClient():
def ping(self):
"""simple ping"""
if self.show_config()['state']=="running":
return {"status": "pong"}
else:
return{"status": "not_running"}
return {"status": "not_running"}
def logs(self, limit=None):
"""Show latest logs.