Merge pull request #366 from oddstr13/pr-json-filter-1

Filter keys containing None values from dictionaries returned from the server
This commit is contained in:
mcarlton00 2020-08-21 17:43:52 -04:00 committed by GitHub
commit 4e2c8a0af3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 214 additions and 26 deletions

View file

@ -435,7 +435,7 @@ class API(object):
if response.status_code == 200:
return response.json()
else:
return { 'Status_Code': response.status_code }
return {'Status_Code': response.status_code}
def get_public_info(self, server_address):
response = self.send_request(server_address, "system/info/public")