From 81cbcc54542e7bc14c3968d8b419cec47307422e Mon Sep 17 00:00:00 2001 From: gomezchavez Date: Thu, 9 Jun 2022 11:40:19 +0200 Subject: [PATCH] Bug 1862: Fixed required field in SOL006 IM to generate OSM repo index Change-Id: I3b0e80611d5cd800fe2ffc78e1c71765d19bcf23 Signed-off-by: gomezchavez --- osmclient/sol005/osmrepo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") -- 2.25.1