From f91d364b0ae3e6c1264fd990742a7b0404c0c49a Mon Sep 17 00:00:00 2001 From: Ferenc Erki Date: Mon, 15 Jan 2018 06:48:17 +0100 Subject: [PATCH] Convert namespace separators from module to task (fix #1188) --- lib/Rex/Commands.pm | 3 +++ 1 file changed, 3 insertions(+) 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_\-]+$});