diff mbox

[Branch,~linaro-validation/lava-scheduler/trunk] Rev 247: Fix usage of lava_dispatcher.config API wrt recent refactoring

Message ID 20130613145520.2880.3666.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Antonio Terceiro June 13, 2013, 2:55 p.m. UTC
------------------------------------------------------------
revno: 247
committer: Antonio Terceiro <antonio.terceiro@linaro.org>
branch nick: trunk
timestamp: Thu 2013-06-13 11:53:25 -0300
message:
  Fix usage of lava_dispatcher.config API wrt recent refactoring
modified:
  lava_scheduler_daemon/dbjobsource.py


--
lp:lava-scheduler
https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk

You are subscribed to branch lp:lava-scheduler.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_scheduler_daemon/dbjobsource.py'
--- lava_scheduler_daemon/dbjobsource.py	2013-01-24 00:19:27 +0000
+++ lava_scheduler_daemon/dbjobsource.py	2013-06-13 14:53:25 +0000
@@ -92,9 +92,8 @@ 
         return self.deferToThread(wrapper, *args, **kw)
 
     def getBoardList_impl(self):
-        cfgdir = os.path.join(os.environ['VIRTUAL_ENV'], 'etc/lava-dispatcher')
         configured_boards = [
-            x.hostname for x in dispatcher_config.get_devices(cfgdir)]
+            x.hostname for x in dispatcher_config.get_devices()]
         boards = []
         for d in Device.objects.all():
             if d.hostname in configured_boards: