Previously, the filename was split at the first dot, now it can only
contain just one dot. Also fix the error message to actually include the
faulty filename.
"""
log.info('Running action "%s"', action)
# Split the action filename
- parts = action.split('.', 2)
- if (len(parts) < 2):
- log.error('Invalid action filename: "%s". Should be in the form name.type, where type is a valid handler.')
+ parts = action.split('.')
+ if (len(parts) != 2):
+ log.error('Invalid action filename: "%s". Should be in the form name.type, where type is a valid handler.' % action)
return
(action_name, action_ty) = parts