projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8594f27
)
Convert ganeti-watcher
author
Michael Hanselmann
<hansmi@google.com>
Wed, 1 Oct 2008 17:36:20 +0000
(17:36 +0000)
committer
Michael Hanselmann
<hansmi@google.com>
Wed, 1 Oct 2008 17:36:20 +0000
(17:36 +0000)
Use RPC calls instead of ssconf.
Reviewed-by: iustinp
daemons/ganeti-watcher
patch
|
blob
|
history
diff --git
a/daemons/ganeti-watcher
b/daemons/ganeti-watcher
index
fc7fd1b
..
ae1f6e5
100755
(executable)
--- a/
daemons/ganeti-watcher
+++ b/
daemons/ganeti-watcher
@@
-36,7
+36,6
@@
from optparse import OptionParser
from ganeti import utils
from ganeti import constants
from ganeti import serializer
-from ganeti import ssconf
from ganeti import errors
from ganeti import opcodes
from ganeti import logger
@@
-282,8
+281,7
@@
class Watcher(object):
"""
def __init__(self):
- sstore = ssconf.SimpleStore()
- master = sstore.GetMasterNode()
+ master = client.QueryConfigValues(["master_node"])[0]
if master != utils.HostInfo().name:
raise NotMasterError("This is not the master node")
self.instances = GetInstanceList()