Skip to content

Commit 60d7215

Browse files
authored
fix dhcp lease entry wrong hostname (apache#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
1 parent 8173741 commit 60d7215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/cs/CsDhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def add(self, entry):
188188
lease))
189189
else:
190190
tag = entry['ipv4_address'].replace(".", "_")
191-
self.cloud.add("%s,set:%s,%s,%s,%sh" % (entry['mac_address'],
191+
self.cloud.add("%s,set:%s,%s,%s,%s" % (entry['mac_address'],
192192
tag,
193193
entry['ipv4_address'],
194194
entry['host_name'],

0 commit comments

Comments
 (0)