Merge "Skip autohold if no autohold was requested"

This commit is contained in:
Zuul 2018-03-14 16:54:03 +00:00 committed by Gerrit Code Review
commit cd4382ab63
1 changed files with 2 additions and 1 deletions

View File

@ -1047,7 +1047,8 @@ class Scheduler(threading.Thread):
autohold_key = self._getAutoholdRequestKey(build)
try:
self.nodepool.holdNodeSet(build.nodeset, autohold_key)
if autohold_key is not None:
self.nodepool.holdNodeSet(build.nodeset, autohold_key)
except Exception:
self.log.exception("Unable to process autohold for %s:",
autohold_key)