From cf0953ef0d1c8d53f0942eecbe9a0341b3fe85c8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 25 May 2020 15:13:40 -0300 Subject: Fix: hydra_yaml_param expression --- lib/hydra/deploy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/hydra/deploy b/lib/hydra/deploy index 3335686..713a53e 100644 --- a/lib/hydra/deploy +++ b/lib/hydra/deploy @@ -130,8 +130,9 @@ function hydra_yaml_param { local param="$1" local file="$2" - #grep "^$param: " $file | cut -d ' ' -f 2 | sed -e "s/'//g" -e 's/"//g' - grep "^$param" $file | sed -e "s/^$param//" | cut -d ':' -f 2 | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" + #grep "^$param: " $file | cut -d ' ' -f 2 | sed -e "s/'//g" -e 's/"//g' + #grep "^$param" $file | sed -e "s/^$param//" | cut -d ':' -f 2 | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" + grep "^$param:[^:]" $file | sed -e "s/^$param://" | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" } # Create puppet folder structure -- cgit v1.2.3