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