Add noop job to config validator

With the addition of the internal "noop" job, the config validator
should know that it exists when checking that a config file
references valid jobs.

Change-Id: Icea4def074fd9a1152966f2c768e30d98d432dfd
This commit is contained in:
James E. Blair 2014-03-21 11:21:10 -07:00
parent 18c6444f32
commit b47a3aeeeb
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ class Server(object):
if not os.path.exists(path):
raise Exception("Unable to find job list: %s" % path)
jobs = set()
jobs.add('noop')
for line in open(path):
v = line.strip()
if v: