avoid ls'ing third_party/etcd

third_party/etcd isn't guaranteed to be present, this was causing
the script to fail prior to printing out the error message about
version mismatch

fixes #41989
This commit is contained in:
Aaron Crickenberger 2017-02-23 11:11:31 -08:00
parent f1182ddc27
commit 57170100a0

View File

@ -40,7 +40,6 @@ kube::etcd::validate() {
export PATH=$KUBE_ROOT/third_party/etcd:$PATH
hash etcd
echo $PATH
ls $KUBE_ROOT/third_party/etcd
version=$(etcd --version | head -n 1 | cut -d " " -f 3)
if [[ "${version}" < "${ETCD_VERSION}" ]]; then
kube::log::usage "etcd version ${ETCD_VERSION} or greater required."