Skip to content

Commit

Permalink
Merge pull request #16829 from mlschroe/master
Browse files Browse the repository at this point in the history
[backend] tweak automatic obsrepositories mode for DoD containers
  • Loading branch information
mlschroe authored Sep 10, 2024
2 parents 8f38604 + 940608c commit 1fddb2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/BSSched/BuildJob/Docker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ sub check {
my @newpath;
my $annotationbdep = $cbdep[-1];
my $annotation = BSSched::BuildJob::getcontainerannotation($cpool, $annotationbdep->{'p'}, $annotationbdep);
if (!$annotation && !$haveobsrepositories) {
# no annotation, assume obsrepositories:/
if ((!$annotation || $annotation->{'registry_digest'}) && !$haveobsrepositories) {
# no annotation or DoD container, assume obsrepositories:/
push @newpath, {'project' => '_obsrepositories', 'repository' => ''};
$annotation = { 'repo' => [ { 'url' => 'obsrepositories:/' } ] };
$annotationbdep->{'annotation'} = BSUtil::toxml($annotation, $BSXML::binannotation);
Expand Down

0 comments on commit 1fddb2a

Please sign in to comment.