Skip to content

Commit 5b68d6b

Browse files
author
Doug Greiman
committed
Style fixes
1 parent c4b4387 commit 5b68d6b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/local_cloudbuild.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_field_value(container, field_name, field_type):
9696
field_type (type): Expected type for field value
9797
9898
Returns:
99-
any: Fetched or default value of field
99+
Any: Fetched or default value of field
100100
101101
Raises:
102102
ValueError: if field value cannot be converted to the desired type
@@ -143,9 +143,11 @@ def get_cloudbuild(raw_config, args):
143143
raise ValueError(
144144
'Expected {} contents to be of type "dict", but found type "{}"'.
145145
format(args.config, type(raw_config)))
146+
146147
raw_steps = get_field_value(raw_config, 'steps', list)
147148
if not raw_steps:
148149
raise ValueError('No steps defined in {}'.format(args.config))
150+
149151
steps = [get_step(raw_step) for raw_step in raw_steps]
150152
return CloudBuild(
151153
output_script=args.output_script,
@@ -180,7 +182,7 @@ def get_step(raw_step):
180182
dir_=dir_,
181183
env=env,
182184
name=name,
183-
)
185+
)
184186

185187

186188
def generate_command(step):

0 commit comments

Comments
 (0)