Remove hack to reformat os-apply-config output
In Ibc8b21cd6922b8664ca71e9e6009c8573ea9d107 we updated os-apply-config such that it outputs useful JSON data. This patch removes a hack that sort-of-kinda made valid JSON out of the previous os-apply-config output. Change-Id: I8ea78db3c59a54098e4211621ecc3c4e7a2a7956
This commit is contained in:
parent
2df6e04fe0
commit
2570e60213
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Configure sysctl settings based on Heat metadata.
|
||||
set -eu
|
||||
SYSCTL_DATA=$(os-apply-config --key sysctl --type raw --key-default '' | sed "s/u'/'/g"|sed "s/'/\"/g")
|
||||
SYSCTL_DATA=$(os-apply-config --key sysctl --type raw --key-default '')
|
||||
SYSCTL_KEYS=$(jq keys <<< $SYSCTL_DATA)
|
||||
COUNT=$(($(jq length <<< $SYSCTL_KEYS) - 1))
|
||||
for i in $(seq 0 $COUNT); do
|
||||
|
|
Loading…
Reference in New Issue