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:
parent
e95876b3b5
commit
4731bf5d4b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user