Revision 3fb4f740 lib/backend.py

b/lib/backend.py
2557 2557
    elif phase == constants.HOOKS_PHASE_POST:
2558 2558
      suffix = "post"
2559 2559
    else:
2560
      raise errors.ProgrammerError("Unknown hooks phase: '%s'" % phase)
2560
      _Fail("Unknown hooks phase '%s'", phase)
2561

  
2561 2562
    rr = []
2562 2563

  
2563 2564
    subdir = "%s-%s.d" % (hpath, suffix)
......
2566 2567
      dir_contents = utils.ListVisibleFiles(dir_name)
2567 2568
    except OSError, err:
2568 2569
      # FIXME: must log output in case of failures
2569
      return rr
2570
      return True, rr
2570 2571

  
2571 2572
    # we use the standard python sort order,
2572 2573
    # so 00name is the recommended naming scheme
......
2585 2586
          rrval = constants.HKR_SUCCESS
2586 2587
      rr.append(("%s/%s" % (subdir, relname), rrval, output))
2587 2588

  
2588
    return rr
2589
    return True, rr
2589 2590

  
2590 2591

  
2591 2592
class IAllocatorRunner(object):

Also available in: Unified diff