CLOUDSTACK-3533: Add space after IP for dhcp_release

To prevent use the wrong mac of the IP with same prefix.

Thanks to Wei Zhou's comment!
This commit is contained in:
Sheng Yang 2013-07-24 00:49:21 -07:00
parent b6f7dccf0b
commit dabea9da08
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ if [ $no_dhcp_release -eq 0 ]
then
#release previous dhcp lease if present
logger -t cloud "edithosts: releasing $ipv4"
dhcp_release eth0 $ipv4 $(grep $ipv4 $DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1
dhcp_release eth0 $ipv4 $(grep "$ipv4 " $DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1
logger -t cloud "edithosts: released $ipv4"
fi