aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-05-25 15:13:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-05-25 15:13:40 -0300
commitcf0953ef0d1c8d53f0942eecbe9a0341b3fe85c8 (patch)
treeb54dd546d5f2c4ec5113d56f8e2eca7d637915a2 /lib
parent37867232bdcb373b41bd9b416e3c0f6ab413b477 (diff)
downloadhydra-cf0953ef0d1c8d53f0942eecbe9a0341b3fe85c8.tar.gz
hydra-cf0953ef0d1c8d53f0942eecbe9a0341b3fe85c8.tar.bz2
Fix: hydra_yaml_param expression
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/deploy5
1 files changed, 3 insertions, 2 deletions
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