Skip to content

Commit a460173

Browse files
committed
Merge from develop; update animation messages at runtime.
1 parent 371a6c6 commit a460173

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/patcher/client/report_manager.py

+7
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ async def process_reports(
149149
output_path = self._validate_directory(path)
150150

151151
self.log.debug("Attempting to retrieve policy IDs.")
152+
await animation.update_msg("Retrieving policy IDs from Jamf...")
152153
try:
153154
patch_ids = await self.api_client.get_policies()
154155
self.log.info(f"Retrieved policy IDs for {len(patch_ids)} policies.")
@@ -159,6 +160,7 @@ async def process_reports(
159160
)
160161

161162
self.log.debug("Attempting to retrieve patch summaries.")
163+
await animation.update_msg("Retrieving patch summaries from Jamf...")
162164
try:
163165
patch_reports = await self.api_client.get_summaries(patch_ids)
164166
self.log.info(f"Received policy summaries for {len(patch_reports)} policies.")
@@ -170,22 +172,27 @@ async def process_reports(
170172

171173
# (option) Sort
172174
if sort:
175+
await animation.update_msg("Sorting reports...")
173176
patch_reports = await self._sort(patch_reports, sort)
174177

175178
# (option) Omit
176179
if omit:
180+
await animation.update_msg("Omitting recent releases...")
177181
patch_reports = await self._omit(patch_reports)
178182

179183
# (option) iOS
180184
if ios:
185+
await animation.update_msg("Including iOS info...")
181186
patch_reports = await self._ios(patch_reports)
182187

183188
# Generate reports
189+
await animation.update_msg("Generating Excel file...")
184190
excel_file = await self._generate_excel(
185191
patch_reports=patch_reports, reports_dir=output_path
186192
)
187193

188194
if pdf:
195+
await animation.update_msg("Generating PDF report...")
189196
await self._generate_pdf(excel_file=excel_file, date_format=date_format)
190197

191198
# Manually stop animation to show success message cleanly

0 commit comments

Comments
 (0)