Merge pull request #329 from coreemu/bugfix/service-config-xml

fix for custom services not setting service.configs when reading xml
This commit is contained in:
bharnden 2020-01-06 11:57:14 -08:00 committed by GitHub
commit 34fa3d8448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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