Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:ARM
hawk2.13713
0003-Fix-cib.xml-parsing-for-acl_version-bsc-11...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-Fix-cib.xml-parsing-for-acl_version-bsc-1158681.patch of Package hawk2.13713
From 057fac98cbad78306c7355636379f774749d8b71 Mon Sep 17 00:00:00 2001 From: Ayoub Belarbi <ayoub-belarbi@users.noreply.github.com> Date: Mon, 16 Dec 2019 15:20:55 +0100 Subject: [PATCH] Fix cib.xml parsing for acl_version (bsc#1158681) --- hawk/app/lib/util.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hawk/app/lib/util.rb b/hawk/app/lib/util.rb index bbefd6d5..1539b71b 100644 --- a/hawk/app/lib/util.rb +++ b/hawk/app/lib/util.rb @@ -356,12 +356,7 @@ module Util def acl_version Rails.cache.fetch(:get_acl_version) do - m = safe_x( - '/usr/sbin/cibadmin', - '-t', '5', - '-Ql', - '--xpath', - '/cib[@validate-with]').lines.first.to_s.match(/validate-with=\"pacemaker-([0-9.]+)\"/) + m = `/usr/sbin/cibadmin -t 5 -Ql --xpath /cib[@validate-with]`.shellescape.lines.first.to_s.match(/validate-with=\"pacemaker-([0-9.]+)\"/) return m.captures[0].to_f if m 2.0 end -- 2.16.4
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