fix for custom services not setting service.configs when reading xml

This commit is contained in:
Blake Harnden 2020-01-06 11:54:51 -08:00
parent 3e87737ee6
commit c1a0f4e83d

View file

@ -664,10 +664,13 @@ class CoreXmlReader:
file_elements = service_configuration.find("files") file_elements = service_configuration.find("files")
if file_elements is not None: if file_elements is not None:
files = []
for file_element in file_elements.iterchildren(): for file_element in file_elements.iterchildren():
name = file_element.get("name") name = file_element.get("name")
data = file_element.text data = file_element.text
service.config_data[name] = data service.config_data[name] = data
files.append(name)
service.configs = tuple(files)
def read_emane_configs(self): def read_emane_configs(self):
emane_configurations = self.scenario.find("emane_configurations") emane_configurations = self.scenario.find("emane_configurations")