mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8935 - Add a check to avoid exception related to None value
This commit is contained in:
parent
e7638c0288
commit
3725b3ee30
|
|
@ -69,9 +69,10 @@ class CsDhcp(CsDataBag):
|
|||
line = "dhcp-option=tag:interface-%s,15,%s" % (device, gn.get_domain())
|
||||
self.conf.search(sline, line)
|
||||
# DNS search order
|
||||
sline = "dhcp-option=tag:interface-%s,6" % device
|
||||
line = "dhcp-option=tag:interface-%s,6,%s" % (device, ','.join(gn.get_dns()))
|
||||
self.conf.search(sline, line)
|
||||
if gn.get_dns() and device:
|
||||
sline = "dhcp-option=tag:interface-%s,6" % device
|
||||
line = "dhcp-option=tag:interface-%s,6,%s" % (device, ','.join(gn.get_dns()))
|
||||
self.conf.search(sline, line)
|
||||
# Gateway
|
||||
gateway = ''
|
||||
if self.config.is_vpc():
|
||||
|
|
|
|||
Loading…
Reference in New Issue