Esempio n. 1
0
 def _list_jobs(*_args, **_kwargs):
     from nav.ipdevpoll.config import get_jobs
     jobs = sorted(job.name for job in get_jobs())
     print('\n'.join(jobs))
     sys.exit()
Esempio n. 2
0
 def _joblist():
     from nav.ipdevpoll.config import get_jobs
     jobs = sorted(job.name for job in get_jobs())
     return jobs
Esempio n. 3
0
 def _list_jobs(*_args, **_kwargs):
     from nav.ipdevpoll.config import get_jobs
     jobs = sorted(job.name for job in get_jobs())
     print '\n'.join(jobs)
     sys.exit()
Esempio n. 4
0
 def test_should_not_fail_on_missing_description(self):
     try:
         get_jobs(self.config)
     except NoOptionError:
         self.fail('Failed to ignore missing option')
Esempio n. 5
0
 def _joblist():
     from nav.ipdevpoll.config import get_jobs
     jobs = sorted(job.name for job in get_jobs())
     return jobs