From 7cee92d5e35259bc87954df5af1a51005ca67faf Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Wed, 19 May 2021 10:58:24 +0200 Subject: [PATCH] Replace deprecated inspect.getargspec call Replace inspect.getargspec with inspect.getfullargspec in the cloud utils. Change-Id: Iac99f7cc69c2e1e6ff6f186c4360d51e92d3a781 --- openstack/cloud/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack/cloud/_utils.py b/openstack/cloud/_utils.py index 9c7488087..ab4748260 100644 --- a/openstack/cloud/_utils.py +++ b/openstack/cloud/_utils.py @@ -362,7 +362,7 @@ def valid_kwargs(*valid_args): # @decorator def func_wrapper(func, *args, **kwargs): - argspec = inspect.getargspec(func) + argspec = inspect.getfullargspec(func) for k in kwargs: if k not in argspec.args[1:] and k not in valid_args: raise TypeError(