Skip to content

Commit aae393d

Browse files
committed
CLOUDSTACK-7974: remove old hostname entry for a VM when adding a VM
When adding a VM, it adds an entry to /etc/hosts file on the VR but does not clear up any older entries for the VM with a same name. The fix uncomments the command that removes any old entries in the VM. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> (cherry picked from commit 63298d9) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 4d78703 commit aae393d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ then
121121
sed -i /$ipv6],/d $DHCP_HOSTS
122122
fi
123123
# don't want to do this in the future, we can have same VM with multiple nics/entries
124-
#sed -i /$host,/d $DHCP_HOSTS
125-
124+
sed -i /$host,/d $DHCP_HOSTS
126125

127126
#put in the new entry
128127
if [ $ipv4 ]

0 commit comments

Comments
 (0)