From 55ad5a71c74d18604cf6a0d5c14e8b72be13c5c5 Mon Sep 17 00:00:00 2001 From: Paige Patton Date: Thu, 3 Oct 2024 12:33:38 -0400 Subject: [PATCH] adding one more if statement --- .../generate_jobs_in_gsheet/get_periodic_jobs.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/prow/generate_jobs_in_gsheet/get_periodic_jobs.py b/prow/generate_jobs_in_gsheet/get_periodic_jobs.py index d4b24b5c..33896264 100644 --- a/prow/generate_jobs_in_gsheet/get_periodic_jobs.py +++ b/prow/generate_jobs_in_gsheet/get_periodic_jobs.py @@ -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():