Do not generate the ganeti_pub_keys file with --no-ssh-init
authorHrvoje Ribicic <riba@google.com>
Wed, 18 Nov 2015 14:58:51 +0000 (14:58 +0000)
committerHrvoje Ribicic <riba@google.com>
Fri, 20 Nov 2015 10:14:10 +0000 (11:14 +0100)
commitb33ef423ed4d3ddd22af2ea050920fb30a945d04
tree47225737cb9a0ac6fd67c32a3d89a23fb0d35088
parentdb6051b118fcca9181fd91ae497c9be3b97ca5e3
Do not generate the ganeti_pub_keys file with --no-ssh-init

Prior to this patch, gnt-cluster renew-crypto still created the
ganeti_pub_keys file regardless of whether the cluster was initiated
with --no-ssh-init or not. Instead, query the matching config parameter
and build the file only if Ganeti manages SSH keys.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/client/gnt_cluster.py
test/py/ganeti.client.gnt_cluster_unittest.py