AddBuilds: fix declarative jobsets with dynamic runcommand enabled

$project->{enable_dynamic_run_command} is undefined
This commit is contained in:
ajs124
2022-06-30 00:32:31 +02:00
parent 44841fc827
commit bb1f04ed86
3 changed files with 59 additions and 15 deletions

View File

@ -67,7 +67,7 @@ sub validateDeclarativeJobset {
my $enable_dynamic_run_command = defined $update{enable_dynamic_run_command} ? 1 : 0;
if ($enable_dynamic_run_command
&& !($config->{dynamicruncommand}->{enable}
&& $project->{enable_dynamic_run_command}))
&& $project->enable_dynamic_run_command))
{
die "Dynamic RunCommand is not enabled by the server or the parent project.";
}