mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixed up get_dns for normal isolated vrs
This commit is contained in:
parent
bf6e3fa8b2
commit
2b0c4c85a9
@ -67,7 +67,14 @@ class CsConfig(object):
|
||||
return self.cl.get_domain()
|
||||
|
||||
def get_dns(self):
|
||||
return self.cmdline().get_dns()
|
||||
dns = []
|
||||
# Check what happens with use_ext_dns
|
||||
dns.append(self.address().get_guest_ip())
|
||||
names = ["dns1", "dns2"]
|
||||
for name in names:
|
||||
if name in self.cmdline().idata():
|
||||
dns.append(self.cmdline().idata()[name])
|
||||
return dns
|
||||
|
||||
def get_format(self):
|
||||
return self.__LOG_FORMAT
|
||||
|
||||
@ -93,14 +93,6 @@ class CsCmdLine(CsDataBag):
|
||||
else:
|
||||
return "unloved-router"
|
||||
|
||||
def get_dns(self):
|
||||
dns = []
|
||||
names = "dns1 dns2"
|
||||
for name in names:
|
||||
if name in self.idata():
|
||||
dns.append(self.idata()[name])
|
||||
return dns
|
||||
|
||||
def get_type(self):
|
||||
if "type" in self.idata():
|
||||
return self.idata()['type']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user