def _check_for_nonzero_return_code(reason):
 m = _BOOTSTRAP_NONZERO_RETURN_CODE_RE.match(reason)
 if m:
  return _extract_action_num_and_node_id(m)
 else:
  return None

def _check_for_nonzero_return_code ( reason ) : m = _BOOTSTRAP_NONZERO_RETURN_CODE_RE . match ( reason ) if m : return _extract_action_num_and_node_id ( m ) else : return None
given a reason for cluster termination .