Skip to content
Snippets Groups Projects
Commit 942a2909 authored by Alex Wiens's avatar Alex Wiens
Browse files

Prule.daemon: Fix typo

parent 5f4afe43
Branches
No related tags found
No related merge requests found
...@@ -673,7 +673,7 @@ class PruleThread(threading.Thread): ...@@ -673,7 +673,7 @@ class PruleThread(threading.Thread):
try: try:
with urllib.request.urlopen(req, timeout=10) as response: with urllib.request.urlopen(req, timeout=10) as response:
if response.status == 200: if response.status == 200:
return json.load(resonse) return json.load(response)
if response.status == 401: if response.status == 401:
print("HTTP Error 401: Unauthorized, ClusterCockpit API TOKEN invalid?", file=sys.stderr) print("HTTP Error 401: Unauthorized, ClusterCockpit API TOKEN invalid?", file=sys.stderr)
self.config.signal_shutdown() self.config.signal_shutdown()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment