From 8d8580e3e5d4ad66bf26edc8c290cac9b99f3204 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Thu, 30 Aug 2018 19:42:30 +0300 Subject: [PATCH] TT#43251 Add explicit 0 exit code of puppet_* functions Without explicit return function returns the exit code of the last function which in not 0 in this case so it causes amiss exit of the script. Change-Id: Ic7f1f534048cb051fe116cb76ee386bf4ca07ff4 --- templates/scripts/includes/deployment.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index 287ac1f..e896f4d 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -1860,6 +1860,8 @@ puppet_install_from_git () { check_puppet_rc "${PIPESTATUS[0]}" "2" check_puppet_rerun && repeat=true done + + return 0 } puppet_install_from_puppet () { @@ -1884,6 +1886,8 @@ puppet_install_from_puppet () { check_puppet_rc "${PIPESTATUS[0]}" "2" check_puppet_rerun && repeat=true done + + return 0 } set_deploy_status "puppet"