diff --git a/check_mk_api/lib/python3/checkmkapi.py b/check_mk_api/lib/python3/checkmkapi.py index 5cc1cbdf..63b85561 100644 --- a/check_mk_api/lib/python3/checkmkapi.py +++ b/check_mk_api/lib/python3/checkmkapi.py @@ -501,7 +501,7 @@ def disc_host(self, hostname, mode="new"): # '----------------------------------------------------------------------' #. - def _wait_for_activation(uri): + def _wait_for_activation(self, uri): code = 302 while code == 302: time.sleep(1) @@ -1630,7 +1630,7 @@ def get_service_status(self, sites=[], query="", columns=[], host_name=""): data["query"] = query if columns: data["columns"] = columns - if hsot_name: + if host_name: data["host_name"] = host_name return self._request( self._get_url,