From 51489a0d10ee934d3dc2278018112c8257aceb24 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 21 Jan 2020 17:07:11 +0000 Subject: [PATCH] Fix issue when getting VNF by name Change-Id: I43fd9cb14aa777c2debb30de6d2b487f3e1b4639 Signed-off-by: garciadeblas --- osmclient/sol005/vnf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.25.1