This is an automated email from the ASF dual-hosted git repository. andrijapanic pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push: new 60d7215 fix dhcp lease entry wrong hostname (#4064) 60d7215 is described below commit 60d7215a067c3e89ecd091961563b40378018fe3 Author: havengit <382829...@qq.com> AuthorDate: Mon May 11 16:56:14 2020 +0800 fix dhcp lease entry wrong hostname (#4064) When Guest VM add secondary nic, will get wrong hostname "infiniteh" from dhcp server infiniteh -->infinite cat /etc/dhcphosts.txt 02:00:0b:ef:00:04,set:192_168_4_18,192.168.4.18,gumd-tes3,infiniteh --- systemvm/debian/opt/cloud/bin/cs/CsDhcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py index 7586372..abbe56b 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py @@ -188,7 +188,7 @@ class CsDhcp(CsDataBag): lease)) else: tag = entry['ipv4_address'].replace(".", "_") - self.cloud.add("%s,set:%s,%s,%s,%sh" % (entry['mac_address'], + self.cloud.add("%s,set:%s,%s,%s,%s" % (entry['mac_address'], tag, entry['ipv4_address'], entry['host_name'],