You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2013/07/24 09:52:04 UTC
git commit: updated refs/heads/4.2 to 26f3427
Updated Branches:
refs/heads/4.2 730021c10 -> 26f3427b6
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!
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/26f3427b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/26f3427b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/26f3427b
Branch: refs/heads/4.2
Commit: 26f3427b66fb5d7f03749ecc038f4860f5bd219e
Parents: 730021c
Author: Sheng Yang <sh...@citrix.com>
Authored: Wed Jul 24 00:49:21 2013 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Wed Jul 24 00:51:58 2013 -0700
----------------------------------------------------------------------
patches/systemvm/debian/config/root/edithosts.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/26f3427b/patches/systemvm/debian/config/root/edithosts.sh
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh
index 4eaecd4..b82fb8e 100755
--- a/patches/systemvm/debian/config/root/edithosts.sh
+++ b/patches/systemvm/debian/config/root/edithosts.sh
@@ -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