diff --git a/lib/Rex/Commands.pm b/lib/Rex/Commands.pm index 256b32f0c..e9192139d 100644 --- a/lib/Rex/Commands.pm +++ b/lib/Rex/Commands.pm @@ -1035,6 +1035,9 @@ sub needs { Rex::Logger::debug("need to call tasks from $self"); + $self =~ s/^Rex:://g; + $self =~ s/::/:/g; + my @tasks_to_run; if($self) { @tasks_to_run = $tl->get_all_tasks(qr{^\Q$self\E:[A-Za-z0-9_\-]+$});