Skip to content

Commit

Permalink
Merge pull request #5438 from Martchus/git-cache-dir-only-from-worker…
Browse files Browse the repository at this point in the history
…-cfg

Ensure only the Git cache directory from the local worker config is used
  • Loading branch information
mergify[bot] authored Jan 25, 2024
2 parents 4162305 + 6085a1a commit 6ca6857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenQA/Worker/Job.pm
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ sub start {
# delete settings we better not allow to be set on job-level (and instead should only be set within the
# worker config)
my $job_settings = $self->info->{settings} // {};
delete $job_settings->{GENERAL_HW_CMD_DIR};
delete $job_settings->{$_} for qw(GENERAL_HW_CMD_DIR GIT_CACHE_DIR);
for my $key (keys %$job_settings) {
delete $job_settings->{$key} if rindex($key, 'EXTERNAL_VIDEO_ENCODER', 0) == 0;
}
Expand Down

0 comments on commit 6ca6857

Please sign in to comment.