Skip to content

Commit

Permalink
Update service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SRIKKANTH committed Jan 2, 2025
1 parent 6ba1395 commit 5b555e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisa/base_tools/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _get_status(self, name: str = "") -> WindowsServiceStatus:
)
if not service_status:
raise LisaException(f"service '{name}' does not exist")
return WindowsServiceStatus(service_status["Status"])
return WindowsServiceStatus(int(service_status["Status"]))

def _is_service_inactive(self, name: str) -> bool:
return self._get_status(name) == WindowsServiceStatus.STOPPED
Expand Down

0 comments on commit 5b555e0

Please sign in to comment.