This commit is contained in:
Mike McLean 2024-02-02 13:22:03 -05:00 committed by Tomas Kopecek
parent e169a6bf3e
commit 4b35b7b729

View file

@ -5731,7 +5731,7 @@ class NewRepoTask(BaseTaskHandler):
if not os.path.isdir(top_repos_dir):
# missing or incorrect mount?
# refuse and let another host try
self.session.refuseTask(self.id, msg="No access to repos dir %s" % top_repos_dir)
self.session.host.refuseTask(self.id, msg="No access to repos dir %s" % top_repos_dir)
# call repoInit
kwargs = {}
@ -5841,7 +5841,7 @@ class CreaterepoTask(BaseTaskHandler):
if not os.path.isdir(top_repos_dir):
# missing or incorrect mount?
# refuse and let another host try
self.session.refuseTask(self.id, msg="No access to repos dir %s" % top_repos_dir)
self.session.host.refuseTask(self.id, msg="No access to repos dir %s" % top_repos_dir)
else:
# we seem to have fs access, but dir is missing, perhaps a repo_init bug?
raise koji.GenericError("Repo directory missing: %s" % self.repodir)