mirror of https://github.com/apache/cloudstack.git
Fix problem with reading invalid key form the dictionary
I did in the same way Ian did for other files, but we have to find a better way to fix it.
This commit is contained in:
parent
64ab2bf8da
commit
3b6f247d40
|
|
@ -39,10 +39,16 @@ class CsGuestNetwork:
|
|||
return self.config.get_dns()
|
||||
|
||||
def get_netmask(self):
|
||||
return self.data['router_guest_netmask']
|
||||
#We need to fix it properly. I just added the if, as Ian did in some other files, to avoid the exception.
|
||||
if 'router_guest_netmask' in self.data:
|
||||
return self.data['router_guest_netmask']
|
||||
return ''
|
||||
|
||||
def get_gateway(self):
|
||||
return self.data['router_guest_gateway']
|
||||
#We need to fix it properly. I just added the if, as Ian did in some other files, to avoid the exception.
|
||||
if 'router_guest_gateway' in self.data:
|
||||
return self.data['router_guest_gateway']
|
||||
return ''
|
||||
|
||||
def get_domain(self):
|
||||
domain = "cloudnine.internal"
|
||||
|
|
|
|||
Loading…
Reference in New Issue