Skip to content

Commit

Permalink
fix(etcd): grep for correct member name to populate file
Browse files Browse the repository at this point in the history
  • Loading branch information
linki committed Aug 31, 2016
1 parent ac8d9d9 commit 1d1f3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/etcd/templates/etcd-petset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ spec:
# store member id into PVC for later member replacement
collect_member() {
while ! etcdctl member list &>/dev/null; do sleep 1; done
etcdctl member list | grep ${HOSTNAME}.etcd | cut -d':' -f1 | cut -d'[' -f1 > /var/run/etcd/member_id
etcdctl member list | grep http://${HOSTNAME}.${PETSET_NAME}:2380 | cut -d':' -f1 | cut -d'[' -f1 > /var/run/etcd/member_id
exit 0
}
Expand Down

0 comments on commit 1d1f3ed

Please sign in to comment.