Skip to content

Commit

Permalink
better output -
Browse files Browse the repository at this point in the history
has unlockable jobs again
  • Loading branch information
Mark Fiers committed Jun 1, 2012
1 parent 22951f8 commit e61fe0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/python/moa/plugin/system/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def hook_check_run():
command = sysConf.originalCommand

#see if this command is 'lockable'
if command in sysConf.plugins.lock.runnable:
if command in sysConf.plugins.system.lock.runnable:
return True

if os.path.exists(os.path.join(sysConf.job.confDir, 'lock')):
Expand All @@ -49,6 +49,7 @@ def unlock(job, args):
if os.path.exists(lockfile):
l.debug("unlocking job in %s" % job.wd)
os.remove(lockfile)
moa.ui.message("Unlocked job")

@moa.args.needsJob
@moa.args.command
Expand All @@ -61,7 +62,7 @@ def lock(job, args):
l.debug("locking job in %s" % job.wd)
with open(lockfile, 'w') as F:
F.write(" ")

moa.ui.message("Locked job")

LOCKTEST = '''
moa simple --np -t test -- echo "poiuy"
Expand Down

0 comments on commit e61fe0d

Please sign in to comment.