File tree 1 file changed +8
-8
lines changed
prow/generate_jobs_in_gsheet
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,14 @@ def get_cloud_type(yaml_file):
127
127
return "rosa"
128
128
elif "aro" in yaml_file ['steps' ]['workflow' ]:
129
129
return "aro"
130
- if "aws " in yaml_file ['steps' ][ 'cluster_profile' ] :
131
- return "aws"
132
- elif "gcp" in yaml_file [ 'steps' ][ 'cluster_profile' ]:
133
- return "gcp"
134
- elif "azure" in yaml_file [ 'steps' ][ 'cluster_profile' ]:
135
- return "azure"
136
- else :
137
- return "Unset"
130
+ if "cluster_profile " in yaml_file ['steps' ]. keys () :
131
+ if "aws" in yaml_file [ 'steps' ][ 'cluster_profile' ]:
132
+ return "aws"
133
+ elif "gcp" in yaml_file [ 'steps' ][ 'cluster_profile' ]:
134
+ return "gcp"
135
+ elif "azure" in yaml_file [ 'steps' ][ 'cluster_profile' ]:
136
+ return "azure"
137
+ return "Unset"
138
138
139
139
def verify_channel (test ):
140
140
if "env" in test ['steps' ].keys ():
You can’t perform that action at this time.
0 commit comments