X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fcommon%2Futils.py;h=43287e957ed4fa35731e93a84e87118f6171c965;hb=c94275062d1faf60c9b6ac360506bbd1a715c0ab;hp=6b6c6f9717fe0d6d146acfad8ac4a03b20da2db6;hpb=a63fb3c6887ecf8221e868e0c8d39d51319ea085;p=osm%2Fosmclient.git diff --git a/osmclient/common/utils.py b/osmclient/common/utils.py index 6b6c6f9..43287e9 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: @@ -66,7 +66,7 @@ def get_key_val_from_pkg(descriptor_file): if yamlfile is None: return None - dict = yaml.load(tar.extractfile(yamlfile)) + dict = yaml.safe_load(tar.extractfile(yamlfile)) result = {} for k1, v1 in list(dict.items()): if not k1.endswith('-catalog'):