Skip to content

Commit

Permalink
fix/PHAL admin service status (#25)
Browse files Browse the repository at this point in the history
* Update service.py

* Update admin.py

* Update admin.py
  • Loading branch information
JarbasAl authored Oct 18, 2023
1 parent c958104 commit 60ff162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ovos_PHAL/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class AdminPHAL(PHAL):

def __init__(self, config=None, bus=None, on_ready=on_admin_ready, on_error=on_admin_error,
on_stopping=on_admin_stopping, on_started=on_admin_started, on_alive=on_admin_alive,
watchdog=lambda: None, name="PHAL.admin", **kwargs):
watchdog=lambda: None, skill_id="PHAL.admin", **kwargs):
if config and "admin" not in config:
config = {"admin": config}
super().__init__(config, bus, on_ready, on_error, on_stopping, on_started, on_alive, watchdog, name, **kwargs)
super().__init__(config, bus, on_ready, on_error, on_stopping, on_started, on_alive, watchdog, skill_id, **kwargs)

def load_plugins(self):
for name, plug in find_admin_plugins().items():
Expand Down
4 changes: 2 additions & 2 deletions ovos_PHAL/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PHAL:
def __init__(self, config=None, bus=None,
on_ready=on_ready, on_error=on_error,
on_stopping=on_stopping, on_started=on_started, on_alive=on_alive,
watchdog=lambda: None, skill_id="ovos.PHAL", **kwargs):
watchdog=lambda: None, skill_id="PHAL", **kwargs):
if not bus:
bus = MessageBusClient()
bus.run_in_thread()
Expand All @@ -54,7 +54,7 @@ def __init__(self, config=None, bus=None,
on_stopping=stopping_hook,
on_alive=alive_hook,
on_started=started_hook)
self.status = ProcessStatus("PHAL", callback_map=callbacks)
self.status = ProcessStatus(skill_id, callback_map=callbacks)
self._watchdog = watchdog # TODO implement
self.user_config = config or Configuration().get("PHAL") or {}
if "admin" in self.user_config:
Expand Down

0 comments on commit 60ff162

Please sign in to comment.