Skip to content

Commit

Permalink
Fix bsc#1163381
Browse files Browse the repository at this point in the history
Hawk2 returns "Low level server error occurred" after authentication if a resource has the same name as a node"
  • Loading branch information
MalloZup committed Jul 30, 2020
1 parent d00b94a commit 75b690a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hawk/app/models/cib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ def initialize(id, user, use_file = false, stonithwarning = false)

state = CibTools.op_rc_to_state operation, rc_code, state

# check for guest nodes
if !op.attributes['on_node'].nil? && [:master, :started].include?(state)
# check for guest nodes
if !op.attributes['on_node'].nil? && [:master, :started].include?(state) && lrm_resource.attributes['container'].nil?
@nodes.select { |n| n[:uname] == rsc_id }.each do |guest|
guest[:host] = node[:uname]
guest[:remote] = true
Expand Down

0 comments on commit 75b690a

Please sign in to comment.