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()
def _joblist(): from nav.ipdevpoll.config import get_jobs jobs = sorted(job.name for job in get_jobs()) return jobs
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()
def test_should_not_fail_on_missing_description(self): try: get_jobs(self.config) except NoOptionError: self.fail('Failed to ignore missing option')