Skip to content

Commit

Permalink
Merge pull request #1094 from projectcalico/etcdctl-for-calico-diags
Browse files Browse the repository at this point in the history
Allow customization of 'etcdctl' for calico-diags
  • Loading branch information
lwr20 committed Sep 5, 2016
2 parents a4ea4d7 + 6e1deb8 commit 9ea4c7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/calico-diags
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fi
echo "Collecting diags"
echo "This script attempts to collect a wide range of diagnostics, some of which may not be available on your system - don't worry if this script produces warning messages for these."

ETCDCTL=${ETCDCTL:-etcdctl}
ROUTE_FILE=route
CALICO_CFG=/etc/calico
CALICO_DIR=/var/log/calico
Expand Down Expand Up @@ -60,8 +61,8 @@ rabbitmqctl status rabbitmq_status 2>&1

echo " copying contents of etcd..."

etcdctl ls --recursive -p > etcdctl_ls 2>&1
etcdctl ls --recursive -p | grep -v '/$' | xargs -n1 -t etcdctl get > etcdctl_get
${ETCDCTL} ls --recursive -p > etcdctl_ls 2>&1
${ETCDCTL} ls --recursive -p | grep -v '/$' | xargs -n1 -t ${ETCDCTL} get > etcdctl_get

echo " copying config files..."

Expand Down

0 comments on commit 9ea4c7a

Please sign in to comment.