Skip to content

Commit

Permalink
Merge pull request #1 from ChristophGoth/patch-1
Browse files Browse the repository at this point in the history
Update agent_unifi_controller
  • Loading branch information
gurubert authored Aug 28, 2024
2 parents 29c7352 + c8204dc commit 39475c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents/special/agent_unifi_controller
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ class unifi_controller_api(object):

def check_unifi_os(self):
_response = self.request("GET",url=self.url,allow_redirects=False)
self.is_unifios= _response.status_code == 200 and _response.headers.get("x-csrf-token")
self.is_unifios= _response.status_code == 200

def get_sysinfo(self):
return self.get_data("/stat/sysinfo")
Expand Down

0 comments on commit 39475c6

Please sign in to comment.