Revision 9ba38706 lib/watcher/__init__.py
b/lib/watcher/__init__.py | ||
---|---|---|
42 | 42 |
from ganeti import errors |
43 | 43 |
from ganeti import opcodes |
44 | 44 |
from ganeti import cli |
45 |
from ganeti import luxi |
|
45 |
import ganeti.rpc.node as rpc |
|
46 |
import ganeti.rpc.errors as rpcerr |
|
46 | 47 |
from ganeti import rapi |
47 | 48 |
from ganeti import netutils |
48 | 49 |
from ganeti import qlang |
... | ... | |
524 | 525 |
# this is, from cli.GetClient, a not-master case |
525 | 526 |
raise NotMasterError("Not on master node (%s)" % err) |
526 | 527 |
|
527 |
except luxi.NoMasterError, err:
|
|
528 |
except rpcerr.NoMasterError, err:
|
|
528 | 529 |
if not try_restart: |
529 | 530 |
raise |
530 | 531 |
|
Also available in: Unified diff