aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-12-31 10:37:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-12-31 10:37:38 -0300
commitf4ca036eec840d135c74be97e9cc594569d6c32d (patch)
treeb21c2ff2229cfde5f1ca6d6e2d9f11468f1cd3b7
parentcdf470e3aaf5983ea10009c8b5fc457491b14c29 (diff)
downloadhydra-f4ca036eec840d135c74be97e9cc594569d6c32d.tar.gz
hydra-f4ca036eec840d135c74be97e9cc594569d6c32d.tar.bz2
Fix: hydra_yaml_param regexp
-rw-r--r--lib/hydra/deploy7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy
index ed281d1..84a9fda 100644
--- a/lib/hydra/deploy
+++ b/lib/hydra/deploy
@@ -130,9 +130,10 @@ 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 | sed -e "s/^$param://" | 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"
+ grep "^$param *:[^:]" $file | sed -e "s/^$param *://" | sed -e "s/'//g" -e 's/"//g' -e "s/ //g"
}
# Create puppet folder structure