Module rapi
source code
Ganeti Remote API master script.
|
|
|
CheckRapi(options,
args)
Initial checks whether to run or exit with a failure. |
source code
|
|
|
PrepRapi(options,
_)
Prep remote API function, executed with the PID file held. |
source code
|
|
|
ExecRapi(options,
args,
prep_data)
Main remote API function, executed with the PID file held. |
source code
|
|
|
|
Imports:
logging,
optparse,
sys,
os,
errno,
pyinotify,
asyncnotifier,
constants,
http,
daemon,
ssconf,
rpcerr,
serializer,
compat,
utils,
pathutils,
connector,
baserlib,
ganeti
Configures an inotify watcher for a file.
- Parameters:
filename (string) - File to watch
cb (callable) - Function called on file change
|