metrics: scaling: require jq is installed

Also remove trailing whitespace

Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
This commit is contained in:
Antti Kervinen
2019-08-29 15:13:31 +03:00
committed by David Lyle
parent a61deb736c
commit 18fde35232
+2 -4
View File
@@ -200,7 +200,7 @@ EOF
init() {
info "Initialising"
local cmds=("bc")
local cmds=("bc" "jq")
check_cmds "${cmds[@]}"
info "Checking k8s accessible"
@@ -339,7 +339,7 @@ find_unique_pods() {
new_pods[${#new_pods[@]}]=$a
fi
done
}
}
cleanup() {
info "Cleaning up"
@@ -430,7 +430,6 @@ main() {
esac
done
shift $((OPTIND-1))
init
run
# cleanup will happen at exit due to the shell 'trap' we registered
@@ -438,4 +437,3 @@ main() {
}
main "$@"