From a46186d6f2dfd5bd7c8ffeb0f5553d73b6a86bbf Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 10 Nov 2023 13:44:14 +0100 Subject: [PATCH] Don't remove the public SSH deploy key --- lib/cr_vmware_tpl/handler/vm.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/cr_vmware_tpl/handler/vm.py b/lib/cr_vmware_tpl/handler/vm.py index 049791f..69313d5 100644 --- a/lib/cr_vmware_tpl/handler/vm.py +++ b/lib/cr_vmware_tpl/handler/vm.py @@ -417,16 +417,6 @@ class HandlerVmMixin(): LOG.info(_("Last actions before powering off VM {!r} ...").format(self.tpl_ip)) cmd = textwrap.dedent("""\ - echo - echo "-----------------------------------------------------------" - echo "Cleaning up /root/.ssh/authorized_keys ..." - afile="/root/.ssh/authorized_keys" - tfile="/tmp/authorized_keys" - pattern="create-vmware-tpl@pixelpark.com" - - cat "${afile}" | grep -v "${pattern}" > "${tfile}" - mv -v "${tfile}" "${afile}" - echo echo "-----------------------------------------------------------" echo "Removing SSH host keys ..." -- 2.39.5