From 8fc0cb67ec5dc7175a1da283cd5f009fd733875b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Aug 2021 16:33:42 -0400 Subject: [PATCH] chore: drop unnecessary line stripping Since this comes out of ps-current-scale, we can ensure the contents are always valid. --- plugins/checks/subcommands/run | 2 -- plugins/nginx-vhosts/functions | 2 -- plugins/scheduler-docker-local/scheduler-deploy | 2 -- 3 files changed, 6 deletions(-) diff --git a/plugins/checks/subcommands/run b/plugins/checks/subcommands/run index 29121fd3a..8f1466957 100755 --- a/plugins/checks/subcommands/run +++ b/plugins/checks/subcommands/run @@ -13,8 +13,6 @@ check_all_processes() { local PROC_TYPE local PROC_COUNT while read -r line || [[ -n "$line" ]]; do - [[ "$line" =~ ^#.* ]] && continue - line="$(strip_inline_comments "$line")" local PROC_TYPE=${line%%=*} local PROC_COUNT=${line#*=} diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index 19baf6a9a..cf356dd75 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -511,8 +511,6 @@ nginx_build_config() { PROXY_X_FORWARDED_SSL="$PROXY_X_FORWARDED_SSL") while read -r line || [[ -n "$line" ]]; do - [[ "$line" =~ ^#.* ]] && continue - line="$(strip_inline_comments "$line")" PROC_TYPE=${line%%=*} LISTENERS="$(plugn trigger network-get-listeners "$APP" "$PROC_TYPE" | xargs)" UPP_PROC_TYPE="${PROC_TYPE^^}" diff --git a/plugins/scheduler-docker-local/scheduler-deploy b/plugins/scheduler-docker-local/scheduler-deploy index c83de4573..ab3a1c281 100755 --- a/plugins/scheduler-docker-local/scheduler-deploy +++ b/plugins/scheduler-docker-local/scheduler-deploy @@ -50,8 +50,6 @@ trigger-scheduler-docker-local-scheduler-deploy() { local PROC_COUNT local CONTAINER_INDEX while read -r line || [[ -n "$line" ]]; do - [[ "$line" =~ ^#.* ]] && continue - line="$(strip_inline_comments "$line")" PROC_TYPE=${line%%=*} PROC_COUNT=${line#*=} CONTAINER_INDEX=1