Invert is_peered as returning incorrect codes
This commit is contained in:
parent
d0bcc3ddf7
commit
72d691e63b
|
@ -412,10 +412,10 @@ is_peered() {
|
|||
r_id=$(relation-ids cluster)
|
||||
if [ -z "$(relation-list -r $r_id)" ]; then
|
||||
echo "Unit not yet peered"
|
||||
return 0
|
||||
return 1
|
||||
else
|
||||
echo "Unit peered"
|
||||
return 1
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue