From 37e3b8a3db1ce1cb524e212a812ba2fb8bf499c8 Mon Sep 17 00:00:00 2001 From: Young Hui - AMD <145490163+yhuiYH@users.noreply.github.com> Date: Mon, 22 Dec 2025 17:56:59 -0500 Subject: [PATCH] [rocpd] Write rocpd yaml files as a list, even when only 1 file (#2288) --- projects/rocprofiler-sdk/source/lib/python/rocpd/package.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/projects/rocprofiler-sdk/source/lib/python/rocpd/package.py b/projects/rocprofiler-sdk/source/lib/python/rocpd/package.py index 8c35afc845..95af3db9cb 100644 --- a/projects/rocprofiler-sdk/source/lib/python/rocpd/package.py +++ b/projects/rocprofiler-sdk/source/lib/python/rocpd/package.py @@ -377,11 +377,7 @@ def create_metadata_file(db_files, output_path=".", metadata_filename="index.yam rocpd_metadata_param_version: rocpd_package_version, # "source": "rocprofv3", # omitting source, not sure why we need this, and how we determine the source as rocprof-sys, for example. "path": ".", - "files": ( - rel_paths - if len(rel_paths) > 1 - else (rel_paths[0] if rel_paths else "") - ), + "files": rel_paths, } } }