[enh] microdecision: allow subcategories to have a '-' in their name

This commit is contained in:
Laurent Peuch 2017-08-12 12:05:20 +02:00
parent 0a88f9fa77
commit a0ce7a634b

View file

@ -458,7 +458,7 @@ class ActionsMap(object):
# Retrieve action information
if len(tid) == 4:
namespace, category, subcategory, action = tid
func_name = '%s_%s_%s' % (category, subcategory, action.replace('-', '_'))
func_name = '%s_%s_%s' % (category, subcategory.replace('-', '_'), action.replace('-', '_'))
full_action_name = "%s.%s.%s.%s" % (namespace, category, subcategory, action)
else:
assert len(tid) == 3