From bd0e409b7a1a51ef87336420a2bf32f842f1e7c0 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 23 Jul 2021 03:11:05 +0900 Subject: [PATCH] Replace deprecated tenacity.Retrying.call ... by the __call__ method following the deprecation in the tenacity library[1]. [1] https://github.com/jd/tenacity/commit/d66af82a70dd9af24a7953c6ae5f02d8f198d10f Change-Id: I48a5572052cd2cf1dd984f0e4be5703f1e6bc558 --- cinder/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/utils.py b/cinder/utils.py index fcbb9f6af31..f6f4d060c47 100644 --- a/cinder/utils.py +++ b/cinder/utils.py @@ -613,7 +613,7 @@ def retry(retry_param: Optional[Type[Exception]], reraise=True, retry=retry(retry_param), wait=wait) - return r.call(f, *args, **kwargs) + return r(f, *args, **kwargs) return _wrapper