From b0cd72a3acca4ee13563b2ba7c044242aae85201 Mon Sep 17 00:00:00 2001 From: phamt Date: Thu, 13 Oct 2011 23:05:43 +0000 Subject: [PATCH] Removed hostname from known_hosts file after rmvm. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10767 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/zvm.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/zvm.pm b/xCAT-server/lib/xcat/plugins/zvm.pm index 1b121e7f6..ef38ce0c4 100644 --- a/xCAT-server/lib/xcat/plugins/zvm.pm +++ b/xCAT-server/lib/xcat/plugins/zvm.pm @@ -549,6 +549,9 @@ sub removeVM { xCAT::zvmUtils->delTabEntry( 'noderes', 'node', $node ); xCAT::zvmUtils->delTabEntry( 'nodehm', 'node', $node ); + # Remove old hostname from known_hosts + $out = `ssh-keygen -R $node`; + return; }