From f36c47a50272a04118a6dd5e11d26b2e143d10fa Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 18 Apr 2018 10:31:58 +0200 Subject: [PATCH] Fix bug in osmclient when invoking refactored get_key_val_from_pkg Change-Id: I7ae088c64d6e5315488b79b01c418860acdd833c Signed-off-by: garciadeblas --- osmclient/sol005/package.py | 2 +- osmclient/v1/package.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. -- 2.25.1