Daft mistake that left more data getting merged than we would have liked

This commit is contained in:
Ian Southam 2014-11-10 12:55:05 +01:00 committed by wilderrodrigues
parent 76d0669656
commit 2f8352bf96
2 changed files with 6 additions and 7 deletions

View File

@ -304,7 +304,7 @@ class CsIP:
logging.error("Not able to setup sourcenat for a regular router yet")
else:
logging.error("Unable to process source nat configuration for router of type %s" % type)
route.flush()
#route.flush()
def list(self):
self.iplist = {}

View File

@ -18,9 +18,11 @@ from pprint import pprint
class dataBag:
bdata = { }
DPATH = "/etc/cloudstack"
def __init__(self):
self.bdata = { }
def load(self):
data = self.bdata
if not os.path.exists(self.DPATH):
@ -55,13 +57,12 @@ class dataBag:
class updateDataBag:
qFile = {}
fpath = ''
bdata = { }
DPATH = "/etc/cloudstack"
def __init__(self,qFile):
self.qFile = qFile
self.fpath = ''
self.bdata = {}
self.process()
def process(self):
@ -79,8 +80,6 @@ class updateDataBag:
dbag = self.processGuestNetwork(self.db.getDataBag())
elif self.qFile.type == 'cmdline':
dbag = self.processCL(self.db.getDataBag())
elif self.qFile.type == 'cmdline':
dbag = self.processCL(self.db.getDataBag())
elif self.qFile.type == 'vmpassword':
dbag = self.processVMpassword(self.db.getDataBag())
elif self.qFile.type == 'networkacl':