Skip to content

Commit

Permalink
Stop depending on openshift source and scan having the same name
Browse files Browse the repository at this point in the history
openshift_cluster_info receives source name as an argument. While in
about every single instance it is the same as scan name (especially
since `./scripts/create-camayoc-ocp-config.py` has been introduced),
technically they can be different.
  • Loading branch information
mirekdlugosz authored and ruda committed Jun 24, 2024
1 parent e3f6669 commit bb45c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camayoc/tests/qpc/cli/test_openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def openshift_sources():

def openshift_cluster_info(name):
for scan_info in settings.scans:
if name == scan_info.name:
if name in scan_info.sources:
return scan_info.expected_data[scan_info.name].cluster_info


Expand Down

0 comments on commit bb45c29

Please sign in to comment.