Replace deprecated inspect.getargspec call

Replace inspect.getargspec with inspect.getfullargspec in the cloud
utils.

Change-Id: Iac99f7cc69c2e1e6ff6f186c4360d51e92d3a781
(cherry picked from commit 7cee92d5e3)
This commit is contained in:
Artem Goncharov
2021-05-19 10:58:24 +02:00
committed by Stephen Finucane
parent f41a20395b
commit 4ceff8f3bb

View File

@@ -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(