diff --git a/configuration/aws-automation/lib/functions_wrapper.sh b/configuration/aws-automation/lib/functions_wrapper.sh index ef41a807e0d..eaeaa25af6a 100644 --- a/configuration/aws-automation/lib/functions_wrapper.sh +++ b/configuration/aws-automation/lib/functions_wrapper.sh @@ -12,7 +12,6 @@ function curl_wrapper(){ if is_http_ok $status_code; then success "[ OK ]" echo $response - return 0 else error "[ ERROR ]" notice "Function (${FUNCNAME[1]}): [$status_code] $message\n\n$command" @@ -28,6 +27,7 @@ function aws_wrapper(){ echo $out | sanitize else error "[ ERROR ]" + return 1 fi }