summaryrefslogtreecommitdiffstats
path: root/mcp/scripts
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-25 15:24:06 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-25 15:24:06 +0000
commit45720d1905fd64105e054fa7c898e7d7369897cc (patch)
tree575a0a443a25d558e9c8d8170c49544876dae94c /mcp/scripts
parentc15004f402555df4886b18bba9a837288c6ef250 (diff)
parent597e4b55f57001ead8e90f30e2e3211c7d705ca8 (diff)
Merge "Fix or silence all yamllint warnings"
Diffstat (limited to 'mcp/scripts')
-rw-r--r--mcp/scripts/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 650c63b16..4b88ab7bb 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -176,7 +176,7 @@ parse_yaml() {
s='[[:space:]]*'
w='[a-zA-Z0-9_]*'
fs="$(echo @|tr @ '\034')"
- sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \
+ sed -e 's|---||g' -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \
-e "s|^\($s\)\($w\)$s[:-]$s\(.*\)$s\$|\1$fs\2$fs\3|p" "$1" |
awk -F"$fs" '{
indent = length($1)/2;