path problem for services objects

This commit is contained in:
Emmanuel Garette 2020-07-31 10:21:19 +02:00
parent b612d7884e
commit 331e386470
1 changed files with 2 additions and 4 deletions

View File

@ -245,7 +245,7 @@ class ServiceAnnotator:
setattr(new_service, elttype, values)
continue
eltname = elttype + 's'
path = '.'.join(['services', eltname])
path = '.'.join(['services', service_name, eltname])
family = self.gen_family(eltname,
path,
)
@ -254,7 +254,7 @@ class ServiceAnnotator:
family.family = self.make_group_from_elts(service_name,
elttype,
values,
f'services.{service_name}.{eltname}',
path,
)
setattr(new_service, elttype, family)
new_service.doc = new_service.name
@ -265,8 +265,6 @@ class ServiceAnnotator:
name,
path,
):
if self.objectspace.paths.family_is_defined(path):
return self.objectspace.paths.get_family_obj(path)
family = self.objectspace.family()
family.name = normalize_family(name)
family.doc = name