From: Frank Brehm Date: Fri, 10 Nov 2023 12:44:14 +0000 (+0100) Subject: Don't remove the public SSH deploy key X-Git-Tag: 3.2.1~17 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=a46186d6f2dfd5bd7c8ffeb0f5553d73b6a86bbf;p=pixelpark%2Fcreate-vmware-tpl.git Don't remove the public SSH deploy key --- 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 ..."