Skip to content

Commit 9af3232

Browse files
committed
capz: run ci-build-azure-ccm::cleanup if present, log warn otherwise
1 parent 08d27bb commit 9af3232

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

capz/run-capz-e2e.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ run_capz_e2e_cleanup() {
104104
log "cleaning up"
105105

106106
capz::ci-build-azure-ccm::cleanup || true
107+
if declare -f capz::ci-build-azure-ccm::cleanup > /dev/null 2>&1; then
108+
capz::ci-build-azure-ccm::cleanup || true
109+
else
110+
log "warning: capz::ci-build-azure-ccm::cleanup not found, skipping"
111+
fi
107112

108113
if [[ "$(capz::util::should_build_kubernetes)" == "true" ]]; then
109114
capz::ci-build-kubernetes::cleanup || true

0 commit comments

Comments
 (0)