Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
hawk2.8901
0004-Fix-remote-nodes-iteration-bsc-1080439.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-Fix-remote-nodes-iteration-bsc-1080439.patch of Package hawk2.8901
From 826d87fbb0d9978537eeee1c4534fd2445b45160 Mon Sep 17 00:00:00 2001 From: ayoub-belarbi <belarbi.ayoub@gmail.com> Date: Sat, 10 Feb 2018 16:54:41 +0100 Subject: [PATCH 04/27] High: Fix remote nodes iteration (bsc#1080439) --- hawk/app/models/cib.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hawk/app/models/cib.rb b/hawk/app/models/cib.rb index c34485dc..3bf72b38 100644 --- a/hawk/app/models/cib.rb +++ b/hawk/app/models/cib.rb @@ -603,8 +603,10 @@ class Cib } end - # add remote nodes that may not exist in cib/configuration/nodes/node - @xml.elements.each("cib/status/node_state[remote_node='true']") do |n| + + # add remote nodes that may not exist in cib/configuration/nodes/node + @xml.elements.each("cib/status/node_state") do |n| + if n.attributes['remote_node'] uname = n.attributes['uname'] node_id = n.attributes['id'] # To determine the state of remote nodes, we need to look at @@ -625,6 +627,7 @@ class Cib } end end + end # add guest nodes @xml.elements.each('cib/configuration//primitive/meta_attributes/nvpair[@name="remote-node"]') do |guestattr| -- 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