This patch makes sure that when a node is readded, it's
'authorized_keys' file is cleared from old Ganeti keys
before it is added again. Note that keys which were not
added by Ganeti before, will be left untouched.

Signed-off-by: Helga Velroyen <hel...@google.com>
---
 lib/cmdlib/node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cmdlib/node.py b/lib/cmdlib/node.py
index bf1c1ec..88ff0e0 100644
--- a/lib/cmdlib/node.py
+++ b/lib/cmdlib/node.py
@@ -358,7 +358,7 @@ class LUNodeAdd(LogicalUnit):
         new_node_uuid, new_node_name,
         True, # from authorized keys
         True, # from public keys
-        False, # clear authorized keys
+        True, # clear authorized keys
         True, # clear public keys
         port_map,
         master_candidate_uuids,
-- 
2.1.0.rc2.206.gedb03e5

Reply via email to