daemon: Prefer using Session.getcfgitem() instead of direct access.

This commit is contained in:
Tom Goff 2015-09-21 12:41:19 -04:00
parent e24bc9f3b9
commit 04e934c93c

View file

@ -354,7 +354,7 @@ class Session(object):
def runtime_state_hook(self, state): def runtime_state_hook(self, state):
if state == coreapi.CORE_EVENT_RUNTIME_STATE: if state == coreapi.CORE_EVENT_RUNTIME_STATE:
self.emane.poststartup() self.emane.poststartup()
xmlfilever = self.cfg['xmlfilever'] xmlfilever = self.getcfgitem('xmlfilever')
if xmlfilever in ('1.0',): if xmlfilever in ('1.0',):
xmlfilename = os.path.join(self.sessiondir, xmlfilename = os.path.join(self.sessiondir,
'session-deployed.xml') 'session-deployed.xml')