Hi,

I found some problem with two hooks (hook_post_hosting_TASK_TYPE_task and drush_hosting_hosting_task_rollback). These hooks call:
module_invoke_all(sprintf("post_hosting_%s_task", $task->task_type), $task, drush_get_context('HOSTING_DRUSH_OUTPUT'));

What is the problem?

For example if one task is test-test never be called by that function can not exist with -. Attached a patch that fixes this problem. Changing - by _.

CommentFileSizeAuthor
hooks_problem.patch1.05 KBfastangel

Comments

steven jones’s picture

Status: Needs review » Closed (duplicate)

Thanks for the bug report and the patch, but this issue is a duplicate of #1513678: Hooks based on TASK_NAME should handle task names with dashes in them. please collaborate on a fix over there.