Revision ec79568d daemons/ganeti-watcher
b/daemons/ganeti-watcher | ||
---|---|---|
236 | 236 |
if with_secondaries is not None: |
237 | 237 |
fields.append("snodes") |
238 | 238 |
|
239 |
result = client.QueryInstances([], fields) |
|
239 |
result = client.QueryInstances([], fields, True)
|
|
240 | 240 |
|
241 | 241 |
instances = [] |
242 | 242 |
for fields in result: |
... | ... | |
264 | 264 |
"""Get a dict mapping nodes to boot IDs. |
265 | 265 |
|
266 | 266 |
""" |
267 |
result = client.QueryNodes([], ["name", "bootid", "offline"]) |
|
267 |
result = client.QueryNodes([], ["name", "bootid", "offline"], True)
|
|
268 | 268 |
return dict([(name, (bootid, offline)) for name, bootid, offline in result]) |
269 | 269 |
|
270 | 270 |
|
Also available in: Unified diff