From: garciadeblas Date: Wed, 18 Apr 2018 08:31:58 +0000 (+0200) Subject: Fix bug in osmclient when invoking refactored get_key_val_from_pkg X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=520ac56d0abd44daa27fd0341632767cb18a1b3c;p=osm%2Fosmclient.git Fix bug in osmclient when invoking refactored get_key_val_from_pkg Change-Id: I7ae088c64d6e5315488b79b01c418860acdd833c Signed-off-by: garciadeblas --- diff --git a/osmclient/sol005/package.py b/osmclient/sol005/package.py index f0a9e89..de604c3 100644 --- a/osmclient/sol005/package.py +++ b/osmclient/sol005/package.py @@ -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) diff --git a/osmclient/v1/package.py b/osmclient/v1/package.py index 49527c2..b7a2d97 100644 --- a/osmclient/v1/package.py +++ b/osmclient/v1/package.py @@ -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.