From 54432158fca5ecd94c5cbbc0c1d88bb83f6bfeb4 Mon Sep 17 00:00:00 2001 From: Cole Higgins Date: Mon, 1 Apr 2024 09:06:38 -0400 Subject: [PATCH] updating to list comp --- tests/foreman/ui/test_reporttemplates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/foreman/ui/test_reporttemplates.py b/tests/foreman/ui/test_reporttemplates.py index 332bd79225b..218d83b55fe 100644 --- a/tests/foreman/ui/test_reporttemplates.py +++ b/tests/foreman/ui/test_reporttemplates.py @@ -62,9 +62,9 @@ def setup_content(module_sca_manifest_org, module_target_sat): content_view=cv, organization=org, environment=lce, auto_attach=True ).create() all_content = ak.product_content(data={'content_access_mode_all': '1'})['results'] - for content in all_content: - if content['name'] == custom_repo.name: - content_label = content['label'] + content_label = content_label = [ + repo['label'] for repo in all_content if repo['name'] == custom_repo.name + ][0] ak.content_override( data={'content_overrides': [{'content_label': content_label, 'value': '1'}]} )