Project

General

Profile

Bug #27074

CLI: crash si command de tenant non fournie

Added by Paul Marillonnet over 6 years ago. Updated over 6 years ago.

Status:
Nouveau
Priority:
Normal
Category:
-
Target version:
-
Start date:
08 October 2018
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
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

History

#1

Updated by Paul Marillonnet over 6 years 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 over 6 years ago

  • Assignee set to Paul Marillonnet
#3

Updated by Frédéric Péters over 6 years ago

  • Project changed from Authentic 2 to Hobo

Also available in: Atom PDF