Bug #27074
CLI: crash si command de tenant non fournie
Début:
08 octobre 2018
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Description
(publik-env) paul@amok:~/src/authentic$ authentic-multitenant-manage tenant_command Traceback (most recent call last): File "/home/paul/envs/publik-env/bin/authentic2-ctl", line 7, in <module> exec(compile(f.read(), __file__, 'exec')) File "/home/paul/src/authentic/authentic2-ctl", line 21, in <module> execute_from_command_line(sys.argv[:1] + argv) File "/home/paul/envs/publik-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/home/paul/envs/publik-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/paul/src/hobo/hobo/multitenant/management/commands/tenant_command.py", line 30, in run_from_argv app_name = get_commands()[argv[2]] IndexError: list index out of range
Historique
Mis à jour par Paul Marillonnet il y a plus de 5 ans
On pourrait décider que c'est pas grave, mais c'est la seule brique qui crash comme ça, alors je serai plutôt pour corriger, histoire qu'on ait un comportement uniformisé pour la CLI sur toutes les briques.