Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:8763
fence-agents.openSUSE_Leap_42.3_Update
0017-Maintain-ABI-compatibility-for-external-ag...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0017-Maintain-ABI-compatibility-for-external-agents.patch of Package fence-agents.openSUSE_Leap_42.3_Update
From c6f29a653114523e9ac3644aed958b4bb43f3b41 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen <oalbrigt@redhat.com> Date: Wed, 27 Sep 2017 14:42:39 +0200 Subject: [PATCH 17/17] Maintain ABI compatibility for external agents --- fence/agents/lib/fencing.py.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 80cb3157..50d2b169 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -1326,11 +1326,12 @@ def _parse_input_stdin(avail_opt): continue (name, value) = (line + "=").split("=", 1) - name = name.replace("-", "_"); value = value[:-1] - if name in mapping_longopt_names: - name = mapping_longopt_names[name] + if name.replace("-", "_") in mapping_longopt_names: + name = mapping_longopt_names[name.replace("-", "_")] + elif name.replace("_", "-") in mapping_longopt_names: + name = mapping_longopt_names[name.replace("_", "-")] if avail_opt.count(name) == 0 and name in ["nodename"]: continue -- 2.13.6
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