Closed (duplicate)
Project:
Hostmaster (Aegir)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2012 at 20:40 UTC
Updated:
11 Sep 2012 at 12:42 UTC
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 _.
| Comment | File | Size | Author |
|---|---|---|---|
| hooks_problem.patch | 1.05 KB | fastangel |
Comments
Comment #1
steven jones commentedThanks 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.