Skip to content

Commit 0ff8806

Browse files
committed
Fix RexOps#1508. Related tests are now passing
1 parent a4b06cc commit 0ff8806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Rex/Commands.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,11 +1066,11 @@ sub needs {
10661066
my $suffix = $self . ":";
10671067
if ( @args && grep ( /^\Q$task_name\E$/, @args ) ) {
10681068
Rex::Logger::debug( "Calling " . $task_o->name );
1069-
$task_o->run( "<func>", params => \@task_args, args => \%task_opts );
1069+
$task_o->run( "<func>", params => \%task_opts, args => \@task_args );
10701070
}
10711071
elsif ( !@args ) {
10721072
Rex::Logger::debug( "Calling " . $task_o->name );
1073-
$task_o->run( "<func>", params => \@task_args, args => \%task_opts );
1073+
$task_o->run( "<func>", params => \%task_opts, args => \@task_args );
10741074
}
10751075
}
10761076

0 commit comments

Comments
 (0)