Skip to content

Commit

Permalink
updating to list comp
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeHiggins2 committed Apr 1, 2024
1 parent 744a595 commit 5443215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/foreman/ui/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}]}
)
Expand Down

0 comments on commit 5443215

Please sign in to comment.