don't check for snap mode in common.sh, is only relevant to snap daemons (#1113)

snap mode is for daemons, remove it from client (i.e. common.sh)

supply leader info to client via snap
This commit is contained in:
Rob Walker
2018-09-04 14:31:54 +09:00
committed by GitHub
parent a99dbb2a0c
commit 61abee204f
3 changed files with 15 additions and 3 deletions

View File

@ -166,9 +166,6 @@ find_leader() {
declare shift=0
if [[ -d $SNAP ]]; then
# Exit if mode is not yet configured
# (typically the case after the Snap is first installed)
[[ -n $(snapctl get mode) ]] || exit 0
# Select leader from the Snap configuration
leader_ip=$(snapctl get leader-ip)