Skip to content

Commit

Permalink
Fixes #24615: rudder-cli is not usable in python 3.11 and newer
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Dallidet committed Mar 28, 2024
1 parent faccdce commit 7f559a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/rudder-cli
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def plural(word):
# get all parameters of an api method from the library
def get_api_parameters(method):
if sys.version[0] == 2:
spec = inspect.getargspec(method)
spec = inspect.getfullargspec(method)
else:
spec = inspect.getfullargspec(method)
# get arguments except self and return_raw
Expand Down Expand Up @@ -432,7 +432,7 @@ if __name__ == "__main__":
if isinstance(method_content, list):
kwargs.update(method_content[1])
function = get_api_method(endpoint, objname, command)
params = inspect.getargspec(function).args[1:-1]
params = inspect.getfullargspec(function).args[1:-1]
if json_data is not None:
kwargs.update(json.loads(json_data))
for param in params:
Expand Down

0 comments on commit 7f559a3

Please sign in to comment.