Project

General

Profile

Bug #27074

CLI: crash si command de tenant non fournie

Added by Paul Marillonnet 8 months ago. Updated 8 months ago.

Status:
Nouveau
Priority:
Normal
Category:
-
Start date:
08 Oct 2018
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

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

History

#1 Updated by Paul Marillonnet 8 months ago

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.

#2 Updated by Paul Marillonnet 8 months ago

  • Assignee set to Paul Marillonnet

#3 Updated by Frédéric Péters 8 months ago

  • Project changed from Authentic 2 to Hobo

Also available in: Atom PDF