Revision b74159ee lib/utils.py

b/lib/utils.py
51 51
_re_shell_unquoted = re.compile('^[-.,=:/_+@A-Za-z0-9]+$')
52 52

  
53 53
debug = False
54
no_fork = False
54 55

  
55 56

  
56 57
class RunResult(object):
......
219 220
  Returns: `RunResult` instance
220 221

  
221 222
  """
223
  if no_fork:
224
    raise errors.ProgrammerError("utils.RunCmd() called with fork() disabled")
225

  
222 226
  if isinstance(cmd, list):
223 227
    cmd = [str(val) for val in cmd]
224 228
    strcmd = " ".join(cmd)

Also available in: Unified diff