Revision 8d528b7c daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
484 | 484 |
hr = backend.HooksRunner() |
485 | 485 |
return hr.RunHooks(hpath, phase, env) |
486 | 486 |
|
487 |
# iallocator ----------------- |
|
488 |
|
|
489 |
@staticmethod |
|
490 |
def perspective_iallocator_runner(params): |
|
491 |
"""Run an iallocator script. |
|
492 |
|
|
493 |
""" |
|
494 |
name, idata = params |
|
495 |
iar = backend.IAllocatorRunner() |
|
496 |
return iar.Run(name, idata) |
|
497 |
|
|
487 | 498 |
# test ----------------------- |
488 | 499 |
|
489 | 500 |
@staticmethod |
Also available in: Unified diff