~terceiro/lava-scheduler/doc-fix

« back to all changes in this revision

Viewing changes to lava_scheduler_daemon/dbjobsource.py

  • Committer: Antonio Terceiro
  • Date: 2013-06-13 14:53:25 UTC
  • Revision ID: antonio.terceiro@linaro.org-20130613145325-6om7zwrutkrlicbd
Fix usage of lava_dispatcher.config API wrt recent refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        return self.deferToThread(wrapper, *args, **kw)
93
93
 
94
94
    def getBoardList_impl(self):
95
 
        cfgdir = os.path.join(os.environ['VIRTUAL_ENV'], 'etc/lava-dispatcher')
96
95
        configured_boards = [
97
 
            x.hostname for x in dispatcher_config.get_devices(cfgdir)]
 
96
            x.hostname for x in dispatcher_config.get_devices()]
98
97
        boards = []
99
98
        for d in Device.objects.all():
100
99
            if d.hostname in configured_boards: