Skip to content

Commit

Permalink
Replace string to enum for condition on linux OS
Browse files Browse the repository at this point in the history
Update release notes
  • Loading branch information
dormant-user committed Apr 10, 2023
1 parent 06e1dfc commit 5cbe161
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jarvis/executors/guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def guard_enable() -> NoReturn:
speaker.speak(text=f"Enabled security mode {models.env.title}! I will look out for potential threats and keep you "
f"posted. Have a nice {util.part_of_day()}, and enjoy yourself {models.env.title}!")
if shared.called_by_offline:
if models.settings.os == "Linux":
if models.settings.os == models.supported_platforms.linux:
pname = (current_process().name or "offline communicator").replace('_', ' ')
speaker.speak(text=f"Security mode cannot be enabled via {pname}, as the host "
"machine is running on Linux OS")
Expand Down
12 changes: 12 additions & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Release Notes
=============

7.2.7 (04/10/2023)
------------------
- Replace string to `enum` for condition on linux OS
- Update release notes

7.2.6 (04/10/2023)
------------------
- Use `icalendar` to parse meetings from ICS
- Create a wrapper for icalendar
- Remove unwanted objects to avoid extra overhead
- Ignore after keyword in delay functions for after keywords

7.2.5 (04/09/2023)
------------------
- Disable security mode trigger via offline on Linux
Expand Down

0 comments on commit 5cbe161

Please sign in to comment.