Skip to content

Commit

Permalink
Merge pull request #652 from paigerube14/main
Browse files Browse the repository at this point in the history
Adding one more if statement
  • Loading branch information
paigerube14 authored Oct 3, 2024
2 parents 60e9a00 + 55ad5a7 commit dff528f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions prow/generate_jobs_in_gsheet/get_periodic_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ def get_cloud_type(yaml_file):
return "rosa"
elif "aro" in yaml_file['steps']['workflow']:
return "aro"
if "aws" in yaml_file['steps']['cluster_profile']:
return "aws"
elif "gcp" in yaml_file['steps']['cluster_profile']:
return "gcp"
elif "azure" in yaml_file['steps']['cluster_profile']:
return "azure"
else:
return "Unset"
if "cluster_profile" in yaml_file['steps'].keys():
if "aws" in yaml_file['steps']['cluster_profile']:
return "aws"
elif "gcp" in yaml_file['steps']['cluster_profile']:
return "gcp"
elif "azure" in yaml_file['steps']['cluster_profile']:
return "azure"
return "Unset"

def verify_channel(test):
if "env" in test['steps'].keys():
Expand Down

0 comments on commit dff528f

Please sign in to comment.