py-asterisk icon indicating copy to clipboard operation
py-asterisk copied to clipboard

CLI.py - string with no pop method

Open arvoshift opened this issue 10 years ago • 2 comments

The method execute_action takes a string for argv from command_line. I've tried using .split without success.

-bash-4.1$ python py-asterisk command "ZapShowChannels" Traceback (most recent call last): File "py-asterisk", line 19, in sys.exit(Asterisk.CLI.command_line(sys.argv)) File "/home/benp/staging/py-Asterisk-0.5.10/Asterisk/CLI.py", line 148, in command_line execute_action('command', argv[2]) File "/home/benp/staging/py-Asterisk-0.5.10/Asterisk/CLI.py", line 84, in execute_action method_name = argv.pop(0).lower() AttributeError: 'str' object has no attribute 'pop'

arvoshift avatar Dec 06 '16 02:12 arvoshift

@arvoshift I'll try to debug it on weekend

mouseratti avatar Dec 08 '16 19:12 mouseratti

Fixed

jeansch avatar Dec 08 '16 19:12 jeansch