On Thu, Apr 16, 2015 at 10:49:15AM +0200, 'Helga Velroyen' via ganeti-devel
wrote:
There was a small bug when renewing the master node's SSH
key in a one-node cluster. Instead of referencing
'potential_master_candidates', we have to set the respective
parameter to 'True' as that always holds for the master.
Signed-off-by: Helga Velroyen <[email protected]>
---
lib/backend.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/backend.py b/lib/backend.py
index 01c31db..1a45aa4 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -1976,7 +1976,7 @@ def RenewSshKeys(node_uuids, node_names, ssh_port_map,
potential_master_candidates,
ssh_port_map,
to_authorized_keys=True,
- to_public_keys=potential_master_candidate,
+ to_public_keys=True,
get_public_keys=False,
pub_key_file=pub_key_file, ssconf_store=ssconf_store,
noded_cert_file=noded_cert_file,
--
2.2.0.rc0.207.ga3a616c
LGTM, thanks!
(I guess it's another case of Python's "no scope for variables", right?)