From: gomezchavez Date: Thu, 9 Jun 2022 09:40:19 +0000 (+0200) Subject: Bug 1862: Fixed required field in SOL006 IM to generate OSM repo index X-Git-Tag: v12.0.0rc1~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=81cbcc54542e7bc14c3968d8b419cec47307422e;p=osm%2Fosmclient.git Bug 1862: Fixed required field in SOL006 IM to generate OSM repo index Change-Id: I3b0e80611d5cd800fe2ffc78e1c71765d19bcf23 Signed-off-by: gomezchavez --- diff --git a/osmclient/sol005/osmrepo.py b/osmclient/sol005/osmrepo.py index beaea34..85529de 100644 --- a/osmclient/sol005/osmrepo.py +++ b/osmclient/sol005/osmrepo.py @@ -308,8 +308,8 @@ class OSMRepo(Repo): msg = f"Unexpected descriptor format {descriptor_dict}" self._logger.error(msg) raise ValueError(msg) - - fields["name"] = aux_dict.get("name") + # Repo search is based on 'name' entry in index.yaml. It is mandatory then + fields["name"] = aux_dict.get("name", aux_dict["product-name"]) fields["id"] = aux_dict.get("id") fields["description"] = aux_dict.get("description") fields["vendor"] = aux_dict.get("vendor")