From aebe2a9eeaa3cbe29c745c23684d88e3569bb6d8 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 18 Apr 2008 00:29:02 +0000 Subject: [PATCH] init node's logfile before returning it in get_node() --- qaapi/qa/Config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qaapi/qa/Config.py b/qaapi/qa/Config.py index 7a8e4dc..ba12682 100644 --- a/qaapi/qa/Config.py +++ b/qaapi/qa/Config.py @@ -22,7 +22,7 @@ class Config: slice_tests_path = tests_path + os.sep + 'slice' + os.sep vserver_scripts_path = path + os.sep + 'vserver' + os.sep log_filename = logfile.filename - + def update_api(self, plc = None): # Set up API acccess # If plc is specified, find its configuration @@ -57,7 +57,8 @@ class Config: execfile(config_file, self.__dict__) except: raise "Could not find system config in %s" % config_file - + + self.logfile = logfile self.auth = {} self.auth['Username'] = self.PLC_ROOT_USER self.auth['AuthString'] = self.PLC_ROOT_PASSWORD @@ -95,6 +96,7 @@ class Config: node = Node(self) if hasattr(self, 'nodes') and hostname in self.nodes.keys(): node.update(self.nodes[hostname]) + node.__init_logfile__() return node def load(self, conffile): -- 2.47.0