From d6eb17bc67230c86a053a71ccc7bb44a567618fc Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 6 Jun 2019 17:55:09 +0200 Subject: [PATCH] debug bug 710: increased verbosity of ns.get_field, increased sleep for wait_for_value Change-Id: I526b92892500ed989c8d0de2d0d8dfc1d78b9eee Signed-off-by: garciadeblas --- osmclient/common/utils.py | 2 +- osmclient/sol005/ns.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.25.1