Skip to content

Commit dd49854

Browse files
committed
CH-255 fix cloudharness-base accessed when not needed
1 parent 251acb8 commit dd49854

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/deployment-cli-tools/ch_cli_tools/codefresh.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ def codefresh_app_build_spec(app_name, full_image_name, app_context_path, docker
203203
build['dependencies'] = dependencies
204204

205205
def get_other_image_name(app_name):
206-
full_image_name = helm_values.apps[app_name].image if app_name in helm_values.apps else helm_values[KEY_TASK_IMAGES][app_name]
206+
full_image_name = helm_values.apps[app_name].image if app_name in helm_values.apps \
207+
else helm_values[KEY_TASK_IMAGES][app_name] if app_name in helm_values[KEY_TASK_IMAGES] \
208+
else f"{base_name}/{app_name}"
207209
return image_tag_with_variables(full_image_name, helm_values.registry.name, app_specific_tag_variable(app_name))
208210

209211
def add_arg_dependencies(dependencies):

0 commit comments

Comments
 (0)