mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] remove conditions that are always True
This commit is contained in:
parent
390b1ec17a
commit
70fdbd0188
1 changed files with 2 additions and 7 deletions
|
@ -602,14 +602,9 @@ class ActionsMap(object):
|
||||||
# Retrieve global parameters
|
# Retrieve global parameters
|
||||||
_global = actionsmap.pop('_global', {})
|
_global = actionsmap.pop('_global', {})
|
||||||
|
|
||||||
# -- Parse global configuration
|
top_parser.set_global_conf(_global['configuration'])
|
||||||
if 'configuration' in _global:
|
|
||||||
# Set global configuration
|
|
||||||
top_parser.set_global_conf(_global['configuration'])
|
|
||||||
|
|
||||||
# -- Parse global arguments
|
_add_arguments(GLOBAL_SECTION, top_parser.add_global_parser(),
|
||||||
if 'arguments' in _global:
|
|
||||||
_add_arguments(GLOBAL_SECTION, top_parser.add_global_parser(),
|
|
||||||
_global['arguments'])
|
_global['arguments'])
|
||||||
|
|
||||||
# category_name is stuff like "user", "domain", "hooks"...
|
# category_name is stuff like "user", "domain", "hooks"...
|
||||||
|
|
Loading…
Add table
Reference in a new issue