[mod] we always have actions

This commit is contained in:
Laurent Peuch 2017-07-23 04:46:01 +02:00
parent 2c368596e9
commit e65e6f5990

View file

@ -611,12 +611,6 @@ class ActionsMap(object):
# category_name is stuff like "user", "domain", "hooks"...
# category_values is the values of this category (like actions)
for category_name, category_values in actionsmap.items():
if "actions" not in category_values:
# Invalid category without actions
logger.warning("no actions found in category '%s' in "
"namespace '%s'", category_name, namespace)
continue
actions = category_values.pop('actions')
# Get category parser