Skip to content

Commit 38dd4a7

Browse files
Jaspal SinghJaspal Singh
authored andcommitted
regex changes
1 parent f0a146d commit 38dd4a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nodescraper/plugins/inband/package/package_collector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ def collect_data(
238238
rocm_pattern = args.rocm_regex if args else PackageAnalyzerArgs().rocm_regex
239239
rocm_packages = self._filter_rocm_packages(packages, rocm_pattern)
240240
if rocm_packages:
241+
self.result.message = f"Found {len(rocm_packages)} ROCm-related packages installed as per given regex: {rocm_pattern}"
242+
self.result.status = ExecutionStatus.ERROR
241243
self._log_event(
242244
category=EventCategory.OS,
243-
description=f"Found {len(rocm_packages)} ROCm-related packages installed",
245+
description=f"Found {len(rocm_packages)} ROCm-related packages installed as per given regex: {rocm_pattern}",
244246
priority=EventPriority.INFO,
245247
data={"rocm_packages": sorted(rocm_packages.keys())},
246248
)

0 commit comments

Comments
 (0)