Fix issue when getting VNF by name 11/8511/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 21 Jan 2020 17:07:11 +0000 (17:07 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 21 Jan 2020 17:07:11 +0000 (17:07 +0000)
Change-Id: I43fd9cb14aa777c2debb30de6d2b487f3e1b4639
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/sol005/vnf.py

index 0a72c1a..edae358 100644 (file)
@@ -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))