CLOUDSTACK-3404 fixed vm deploy in ipv6 network, dhcp_release is performed only in ipv4

This commit is contained in:
Jayapal 2013-07-09 13:12:06 +05:30
parent c0a2821ac8
commit c7f26583a2
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ wait_for_dnsmasq () {
return 1
}
if [ $no_dhcp_release -eq 0 ]
if [ "$ipv4" != '' -a $no_dhcp_release -eq 0 ]
then
#release previous dhcp lease if present
logger -t cloud "edithosts: releasing $ipv4"