mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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…
x
Reference in New Issue
Block a user