X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fosmclient.git;a=blobdiff_plain;f=osmclient%2Fcommon%2Fpackage_tool.py;h=652dbc24c1d2081eb67be1107626e9cf0e67f16b;hp=f35a7f33d63018dbcc5062c42df3048defa0fc31;hb=5b5cd4bd8dbcc8b9ba5fa94209c216e255118a94;hpb=70a202f07cc014070a1a31708366ef2f165d0eb8 diff --git a/osmclient/common/package_tool.py b/osmclient/common/package_tool.py index f35a7f3..652dbc2 100644 --- a/osmclient/common/package_tool.py +++ b/osmclient/common/package_tool.py @@ -276,10 +276,10 @@ class PackageTool(object): descriptor_file = False descriptors_paths = [f for f in glob.glob(package_folder + "/*.yaml")] for file in descriptors_paths: - if 'nfd.yaml' in file: + if file.endswith('nfd.yaml'): descriptor_file = True listCharms = self.charms_search(file, 'vnf') - if 'nsd.yaml' in file: + if file.endswith('nsd.yaml'): descriptor_file = True listCharms = self.charms_search(file, 'ns') print("List of charms in the descriptor: {}".format(listCharms))