diff --git a/gallagher/cli/alarms.py b/gallagher/cli/alarms.py index 9109f6b..7d8fa6b 100644 --- a/gallagher/cli/alarms.py +++ b/gallagher/cli/alarms.py @@ -116,7 +116,6 @@ async def comment( "[magenta] Commenting on alarm ...", ) as status: try: - console.log("Finding alarm ...") alarm_detail = await Alarms.retrieve(id) @@ -171,7 +170,6 @@ async def acknowledge( for id in ids: try: - # Get the alarm console.log("Finding alarm ...") alarm_detail = await Alarms.retrieve(id) @@ -220,7 +218,6 @@ async def acknowledge( "[magenta] Attempting to view alarm ...", ) as status: try: - # Get the alarm console.log("Finding alarm ...") alarm_detail = await Alarms.retrieve(id) @@ -287,8 +284,8 @@ async def process( ) as status: for id in ids: - try: + try: # Get the alarm console.log("Finding alarm ...") alarm_detail = await Alarms.retrieve(id) diff --git a/gallagher/enum.py b/gallagher/enum.py index 17b2b6d..ce5dbd4 100644 --- a/gallagher/enum.py +++ b/gallagher/enum.py @@ -9,7 +9,7 @@ from enum import Enum -class SearchSortOrder(Enum): +class SearchSortOrder(str, Enum): """Sort descriptors for search operations. If an endpoint needs to customise the sort order,