Revision aa7b59ac

b/doc/hooks.rst
98 98

  
99 99
- stdout and stderr are directed to files
100 100

  
101
- PATH is reset to ``/sbin:/bin:/usr/sbin:/usr/bin``
101
- PATH is reset to :pyeval:`constants.HOOKS_PATH`
102 102

  
103 103
- the environment is cleared, and only ganeti-specific variables will
104 104
  be left
b/lib/constants.py
328 328
HOOKS_NAME_CFGUPDATE = "config-update"
329 329
HOOKS_NAME_WATCHER = "watcher"
330 330
HOOKS_VERSION = 2
331
HOOKS_PATH = "/sbin:/bin:/usr/sbin:/usr/bin"
331 332

  
332 333
# hooks subject type (what object type does the LU deal with)
333 334
HTYPE_CLUSTER = "CLUSTER"
b/lib/mcpu.py
519 519
    cfg = self.lu.cfg
520 520

  
521 521
    env = {
522
      "PATH": "/sbin:/bin:/usr/sbin:/usr/bin",
522
      "PATH": constants.HOOKS_PATH,
523 523
      "GANETI_HOOKS_VERSION": constants.HOOKS_VERSION,
524 524
      "GANETI_OP_CODE": self.op.OP_ID,
525 525
      "GANETI_DATA_DIR": constants.DATA_DIR,

Also available in: Unified diff