From: garciadeblas Date: Thu, 6 Jun 2019 15:55:09 +0000 (+0200) Subject: debug bug 710: increased verbosity of ns.get_field, increased sleep for wait_for_value X-Git-Tag: v6.0.0~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d6eb17bc67230c86a053a71ccc7bb44a567618fc;p=osm%2Fosmclient.git debug bug 710: increased verbosity of ns.get_field, increased sleep for wait_for_value Change-Id: I526b92892500ed989c8d0de2d0d8dfc1d78b9eee Signed-off-by: garciadeblas --- diff --git a/osmclient/common/utils.py b/osmclient/common/utils.py index 6b6c6f9..937e121 100644 --- a/osmclient/common/utils.py +++ b/osmclient/common/utils.py @@ -30,7 +30,7 @@ def wait_for_value(func, result=True, wait_time=10, catch_exception=None): return True except catch_exception: pass - time.sleep(1) + time.sleep(5) try: return func() == result except catch_exception: diff --git a/osmclient/sol005/ns.py b/osmclient/sol005/ns.py index 0e178c2..1c45f01 100644 --- a/osmclient/sol005/ns.py +++ b/osmclient/sol005/ns.py @@ -453,6 +453,7 @@ class Ns(object): def get_field(self, ns_name, field): nsr = self.get(ns_name) + print(yaml.safe_dump(nsr)) if nsr is None: raise NotFound("failed to retrieve ns {}".format(ns_name))