Revision f2c6673d lib/cli.py

b/lib/cli.py
2413 2413
    assert value is None, \
2414 2414
           "Found value %r for abnormal status %s" % (value, status)
2415 2415

  
2416
    return FormatResultError(status, verbose=self._verbose)
2416
    return FormatResultError(status, self._verbose)
2417 2417

  
2418 2418

  
2419
def FormatResultError(status, verbose=True):
2419
def FormatResultError(status, verbose):
2420 2420
  """Formats result status other than L{constants.RS_NORMAL}.
2421 2421

  
2422 2422
  @param status: The result status
2423
  @type verbose: boolean
2424
  @param verbose: Whether to return the verbose text
2423 2425
  @return: Text of result status
2424 2426

  
2425 2427
  """

Also available in: Unified diff