From 5ca32dfc8205a2847a274597c2e8fde36a85f624 Mon Sep 17 00:00:00 2001 From: Wilder Rodrigues Date: Thu, 22 Oct 2015 14:52:07 +0200 Subject: [PATCH] CLOUDSTACK-8935 - Check if the key is available in the dictionary - This will fix the cleanup problems. --- .../patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py index 401000786a4..e1afb92c8ea 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py @@ -39,7 +39,7 @@ class CsGuestNetwork: if not self.guest: return self.config.get_dns() # Can a router provide dhcp but not dns? - if 'dns' in self.data: + if 'dns' in self.data and 'router_guest_gateway' in self.data: return [self.data['router_guest_gateway']] + self.data['dns'].split(',') elif "router_guest_gateway" in self.data: return [self.data['router_guest_gateway']]