Fix master IP activation in failover with no-voting
authorIustin Pop <iustin@google.com>
Tue, 19 Apr 2011 16:35:13 +0000 (18:35 +0200)
committerIustin Pop <iustin@google.com>
Tue, 19 Apr 2011 16:41:29 +0000 (18:41 +0200)
commit675e2bf5ed42ef284adb417c5940111b2c727aa7
tree6e0caf8f1d130d2bb2276671db0fecf7688367d0
parent6e7f0cd9e9ead56c60527647423422e384c20cbb
Fix master IP activation in failover with no-voting

Thanks to net.for.hub@gmail.com for reporting this. The logic in
masterd.CheckMasterd did an early return in case of no_voting, hence
skipping the master IP activation. We just change the ifs to not
return but simply continue through the function.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/server/masterd.py