daemon: Only automatically save a XML representation of the current
running session when NMF version 1.0 is used.
This commit is contained in:
parent
ea4f6ba518
commit
0018be074f
1 changed files with 5 additions and 2 deletions
|
@ -351,8 +351,11 @@ class Session(object):
|
|||
def runtime_state_hook(self, state):
|
||||
if state == coreapi.CORE_EVENT_RUNTIME_STATE:
|
||||
self.emane.poststartup()
|
||||
xmlfilename = os.path.join(self.sessiondir, 'session-deployed.xml')
|
||||
savesessionxml(self, xmlfilename, self.cfg['xmlfilever'])
|
||||
xmlfilever = self.cfg['xmlfilever']
|
||||
if xmlfilever in ('1.0',):
|
||||
xmlfilename = os.path.join(self.sessiondir,
|
||||
'session-deployed.xml')
|
||||
savesessionxml(self, xmlfilename, xmlfilever)
|
||||
|
||||
def getenviron(self, state=True):
|
||||
''' Get an environment suitable for a subprocess.Popen call.
|
||||
|
|
Loading…
Reference in a new issue