Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
pacemaker.27558
bsc#1205861-0001-Fix-Accept-PCMK_OCF_DEGRADED-a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1205861-0001-Fix-Accept-PCMK_OCF_DEGRADED-and-PCMK_OCF_DEGRADED_M.patch of Package pacemaker.27558
From c9877a055ac53d0807685ae40f101130b0f8eeab Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen <oalbrigt@redhat.com> Date: Tue, 22 Sep 2020 15:46:44 +0200 Subject: [PATCH] Fix: Accept PCMK_OCF_DEGRADED and PCMK_OCF_DEGRADED_MASTER status codes --- daemons/execd/execd_commands.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/daemons/execd/execd_commands.c b/daemons/execd/execd_commands.c index e3e26ef1f..3c97f3416 100644 --- a/daemons/execd/execd_commands.c +++ b/daemons/execd/execd_commands.c @@ -710,8 +710,13 @@ cmd_finalize(lrmd_cmd_t * cmd, lrmd_rsc_t * rsc) static int ocf2uniform_rc(int rc) { - if (rc < 0 || rc > PCMK_OCF_FAILED_MASTER) { - return PCMK_OCF_UNKNOWN_ERROR; + switch (rc) { + case PCMK_OCF_DEGRADED: + case PCMK_OCF_DEGRADED_MASTER: + break; + default: + if (rc < 0 || rc > PCMK_OCF_FAILED_MASTER) + return PCMK_OCF_UNKNOWN_ERROR; } return rc; -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor