added yaml support

This commit is contained in:
Rafael.Timmerberg 2013-10-19 00:55:24 +02:00
commit 16a5a09bf5
4 changed files with 28 additions and 19 deletions

View file

@ -200,10 +200,7 @@ class LishCommander(Exit, ShellCommander, LogCommander):
cmd = text[1]
if cmd in ["enable", "disable"]:
if "n" in cmd:
job.enable()
else:
job.disable()
job.set_enabled("n" in cmd)
else:
print "invalid or missing parameter\n"
self.help_job()