Erase node from /etc/hosts during rmvm.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12331 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2012-04-24 18:30:59 +00:00
parent e95876b3b5
commit 4731bf5d4b

View File

@ -546,8 +546,11 @@ sub removeVM {
xCAT::zvmUtils->delTabEntry( 'noderes', 'node', $node );
xCAT::zvmUtils->delTabEntry( 'nodehm', 'node', $node );
# Remove old hostname from known_hosts
# Erase old hostname from known_hosts
$out = `ssh-keygen -R $node`;
# Erase hostname from /etc/hosts
$out = `sed -i /$node./d /etc/hosts`;
return;
}