Fix bug in osmclient when invoking refactored get_key_val_from_pkg
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 18 Apr 2018 08:31:58 +0000 (10:31 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 18 Apr 2018 08:31:58 +0000 (10:31 +0200)
Change-Id: I7ae088c64d6e5315488b79b01c418860acdd833c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/sol005/package.py
osmclient/v1/package.py

index f0a9e89..de604c3 100644 (file)
@@ -34,7 +34,7 @@ class Package(object):
         self._http = http
 
     def get_key_val_from_pkg(self, descriptor_file):
-        utils.get_key_val_from_pkg(descriptor_file)
+        return utils.get_key_val_from_pkg(descriptor_file)
 
     def upload(self, filename):
         pkg_type = utils.get_key_val_from_pkg(filename)
index 49527c2..b7a2d97 100644 (file)
@@ -50,7 +50,7 @@ class Package(object):
                                                  get_method(pkg_type['name'])))
 
     def get_key_val_from_pkg(self, descriptor_file):
-        utils.get_key_val_from_pkg(descriptor_file)
+        return utils.get_key_val_from_pkg(descriptor_file)
 
     def wait_for_upload(self, filename):
         """wait(block) for an upload to succeed.