Blame SOURCES/bz1415197-02-fix-pcs-cluster-auth.patch
|
|
a3a2ad |
From 4c2dc964999f57395f377d44594324e5ae3df1b0 Mon Sep 17 00:00:00 2001
|
|
|
a3a2ad |
From: Tomas Jelinek <tojeline@redhat.com>
|
|
|
a3a2ad |
Date: Thu, 1 Feb 2018 13:13:23 +0100
|
|
|
a3a2ad |
Subject: [PATCH 2/2] fix 'pcs cluster auth'
|
|
|
a3a2ad |
|
|
|
a3a2ad |
---
|
|
|
a3a2ad |
pcsd/pcs.rb | 2 +-
|
|
|
a3a2ad |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a3a2ad |
|
|
|
a3a2ad |
diff --git a/pcsd/pcs.rb b/pcsd/pcs.rb
|
|
|
a3a2ad |
index 68d2e7ed..43f58f22 100644
|
|
|
a3a2ad |
--- a/pcsd/pcs.rb
|
|
|
a3a2ad |
+++ b/pcsd/pcs.rb
|
|
|
a3a2ad |
@@ -1247,7 +1247,7 @@ def pcs_auth(auth_user, nodes, username, password, force=false, local=true)
|
|
|
a3a2ad |
auth_responses.each { |node, response|
|
|
|
a3a2ad |
if 'ok' == response['status']
|
|
|
a3a2ad |
new_tokens[node] = response['token']
|
|
|
a3a2ad |
- ports[node] = nodes[node]
|
|
|
a3a2ad |
+ ports[node] = nodes[node] || PCSD_DEFAULT_PORT
|
|
|
a3a2ad |
end
|
|
|
a3a2ad |
}
|
|
|
a3a2ad |
if not new_tokens.empty?
|
|
|
a3a2ad |
--
|
|
|
a3a2ad |
2.13.6
|
|
|
a3a2ad |
|