mirror of https://github.com/apache/cloudstack.git
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:
parent
b6f7dccf0b
commit
dabea9da08
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue