Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking endpoints #8

Open
marcovc opened this issue Jul 9, 2015 · 0 comments
Open

Checking endpoints #8

marcovc opened this issue Jul 9, 2015 · 0 comments

Comments

@marcovc
Copy link

marcovc commented Jul 9, 2015

Hi,

I think this line (in several /bin scripts)

while [[ -z $(etcdctl --no-sync -C $ETCD ls $ETCD_PATH/cluster/galeraEndpoints | awk -F/ '{print $6}' | xargs | sed 's/ /,/') ]]

assumes a specific $ETCD_PATH.

Maybe this is more robust:

while [[ -z $(etcdctl --no-sync -C $ETCD ls $ETCD_PATH/cluster/galeraEndpoints | awk -F/ '{print $NF}' | xargs | sed 's/ /,/') ]]

?

Thanks for all the work
Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant