Revision 3656c889 lib/cmdlib.py

b/lib/cmdlib.py
2973 2973
        self._ErrorIf(test, self.ENODEHOOKS, node_name,
2974 2974
                      "Communication failure in hooks execution: %s", msg)
2975 2975
        if res.offline or msg:
2976
          # No need to investigate payload if node is offline or gave an error.
2977
          # override manually lu_result here as _ErrorIf only
2978
          # overrides self.bad
2979
          lu_result = 1
2976
          # No need to investigate payload if node is offline or gave
2977
          # an error.
2980 2978
          continue
2981 2979
        for script, hkr, output in res.payload:
2982 2980
          test = hkr == constants.HKR_FAIL
......
2985 2983
          if test:
2986 2984
            output = self._HOOKS_INDENT_RE.sub("      ", output)
2987 2985
            feedback_fn("%s" % output)
2988
            lu_result = 0
2986
            lu_result = False
2989 2987

  
2990 2988
    return lu_result
2991 2989

  

Also available in: Unified diff