From: garciadeblas Date: Tue, 21 Jan 2020 17:07:11 +0000 (+0000) Subject: Fix issue when getting VNF by name X-Git-Tag: v7.0.1rc2^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=51489a0d10ee934d3dc2278018112c8257aceb24;p=osm%2Fosmclient.git Fix issue when getting VNF by name Change-Id: I43fd9cb14aa777c2debb30de6d2b487f3e1b4639 Signed-off-by: garciadeblas --- diff --git a/osmclient/sol005/vnf.py b/osmclient/sol005/vnf.py index 0a72c1a..edae358 100644 --- a/osmclient/sol005/vnf.py +++ b/osmclient/sol005/vnf.py @@ -66,7 +66,7 @@ class Vnf(object): return vnf else: for vnf in self.list(): - if name == vnf['name']: + if name == vnf.get('name'): return vnf raise NotFound("vnf {} not found".format(name))