Skip to content

Commit

Permalink
Fix RexOps#1508. Related tests are now passing
Browse files Browse the repository at this point in the history
  • Loading branch information
tabulon committed Sep 26, 2021
1 parent a4b06cc commit 0ff8806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Rex/Commands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1066,11 +1066,11 @@ sub needs {
my $suffix = $self . ":";
if ( @args && grep ( /^\Q$task_name\E$/, @args ) ) {
Rex::Logger::debug( "Calling " . $task_o->name );
$task_o->run( "<func>", params => \@task_args, args => \%task_opts );
$task_o->run( "<func>", params => \%task_opts, args => \@task_args );
}
elsif ( !@args ) {
Rex::Logger::debug( "Calling " . $task_o->name );
$task_o->run( "<func>", params => \@task_args, args => \%task_opts );
$task_o->run( "<func>", params => \%task_opts, args => \@task_args );
}
}

Expand Down

0 comments on commit 0ff8806

Please sign in to comment.