Blob Blame History Raw
From a6bcd7f5a387722b1cdec2d8cd8b9e3fafc36da4 Mon Sep 17 00:00:00 2001
From: Tomas Jelinek <tojeline@redhat.com>
Date: Mon, 17 Jun 2019 12:51:32 +0200
Subject: [PATCH 1/3] fix crashes in 'pcs host auth'

---
 pcsd/cfgsync.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pcsd/cfgsync.rb b/pcsd/cfgsync.rb
index 703c0e39..f5d0ba86 100644
--- a/pcsd/cfgsync.rb
+++ b/pcsd/cfgsync.rb
@@ -826,7 +826,8 @@ module Cfgsync
       PCSAuth.getSuperuserAuth(), [config_new.class], target_nodes,
       cluster_name, new_hosts
     )
-    fetched_hosts, _ = fetcher.fetch_all()[config_new.class.name]
+    fetched_configs, _node_connected = fetcher.fetch_all()
+    fetched_hosts = fetched_configs[config_new.class.name]
     config_new = Cfgsync::merge_known_host_files(
       config_old, fetched_hosts, new_hosts, remove_hosts_names
     )
-- 
2.21.0