From patchwork Thu Jun 13 14:55:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Terceiro X-Patchwork-Id: 17914 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ea0-f198.google.com (mail-ea0-f198.google.com [209.85.215.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3539C25DF1 for ; Thu, 13 Jun 2013 15:01:10 +0000 (UTC) Received: by mail-ea0-f198.google.com with SMTP id m14sf11082368eaj.5 for ; Thu, 13 Jun 2013 08:01:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to :mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state:x-original-sender :x-original-authentication-results:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=+VSpNwVyUiQeCXouGUV3A9SfHP2gbdZbmkw8KAWDYUQ=; b=jnuyygmc7VVLXYSSD606qwZVDubv6TGuzybu9Jf1aUnX90zwDqpNWo3NbRejT7mX2s 8g76sh1xolZOe8PzITB1L3CkkXrU21cGj1FiIUeEvyZQgdkPqHvdEIsdOoCxAisvGCFl NupiqgjKoPkchR3ot3x1DLQkcliFMdAETETfHH5eJytrPotvtKIDUeZLW30IArhSxX45 CMmPBVqbIU6Lvnmr75pSEYRyRvNktcYGrwPHtMGgr97u+q04pP/nWLbME6Q65Q9TzMRf zs5Wq3gw5IyTS+WoSH2nqZWTrf/OhKNymTeopm1hZ3e66N8DM7ZLkBAMgNOKzyhEnVe3 SCTw== X-Received: by 10.180.207.44 with SMTP id lt12mr686286wic.5.1371135668833; Thu, 13 Jun 2013 08:01:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.13.71 with SMTP id f7ls488723wic.48.canary; Thu, 13 Jun 2013 08:01:08 -0700 (PDT) X-Received: by 10.180.185.4 with SMTP id ey4mr754230wic.49.1371135668651; Thu, 13 Jun 2013 08:01:08 -0700 (PDT) Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [2607:f8b0:400c:c01::231]) by mx.google.com with ESMTPS id et11si2948795wic.5.2013.06.13.08.01.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Jun 2013 08:01:08 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::231 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::231; Received: by mail-ve0-f177.google.com with SMTP id cz10so7847631veb.36 for ; Thu, 13 Jun 2013 08:01:07 -0700 (PDT) X-Received: by 10.221.21.74 with SMTP id qr10mr446946vcb.25.1371135667604; Thu, 13 Jun 2013 08:01:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.191.99 with SMTP id gx3csp25714vec; Thu, 13 Jun 2013 08:01:07 -0700 (PDT) X-Received: by 10.14.110.194 with SMTP id u42mr1586113eeg.117.1371135666199; Thu, 13 Jun 2013 08:01:06 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id z6si10703943eel.232.2013.06.13.08.01.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 13 Jun 2013 08:01:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Un91M-0008NM-QW for ; Thu, 13 Jun 2013 15:01:05 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id F31D4EF71F for ; Thu, 13 Jun 2013 14:55:20 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-scheduler X-Launchpad-Branch: ~linaro-validation/lava-scheduler/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 247 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Thu, 13 Jun 2013 14:55:20 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16667"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 13aff7e2c72037fce32f30be6b6c7556b1e81c93 X-Gm-Message-State: ALoCoQkP0EhpxCWL2TSFl2WqaxOvJhKe/l9xCBmrCTL9ySpOT+bI6PkjbAbgqo3Dwwr3oGE5xSxr X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::231 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ------------------------------------------------------------ revno: 247 committer: Antonio Terceiro 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 === 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: