Revision 031a3e57 daemons/ganeti-masterd
b/daemons/ganeti-masterd | ||
---|---|---|
316 | 316 |
logging.info("Received invalid request '%s'", method) |
317 | 317 |
raise ValueError("Invalid operation '%s'" % method) |
318 | 318 |
|
319 |
def _DummyLog(self, *args): |
|
320 |
pass |
|
321 |
|
|
322 | 319 |
def _Query(self, op): |
323 | 320 |
"""Runs the specified opcode and returns the result. |
324 | 321 |
|
325 | 322 |
""" |
326 | 323 |
proc = mcpu.Processor(self.server.context) |
327 |
# TODO: Where should log messages go? |
|
328 |
return proc.ExecOpCode(op, self._DummyLog, None) |
|
324 |
return proc.ExecOpCode(op, None) |
|
329 | 325 |
|
330 | 326 |
|
331 | 327 |
class GanetiContext(object): |
Also available in: Unified diff