diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 172: use the context's config rather than reading it again in _install_lava_test

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

Commit Message

Michael-Doyle Hudson Dec. 6, 2011, 3:21 a.m. UTC
------------------------------------------------------------
revno: 172
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Tue 2011-12-06 16:19:42 +1300
message:
  use the context's config rather than reading it again in _install_lava_test
modified:
  lava_dispatcher/actions/lava-test.py


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

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

Patch

=== modified file 'lava_dispatcher/actions/lava-test.py'
--- lava_dispatcher/actions/lava-test.py	2011-11-24 03:00:54 +0000
+++ lava_dispatcher/actions/lava-test.py	2011-12-06 03:19:42 +0000
@@ -26,7 +26,6 @@ 
 
 from lava_dispatcher.actions import BaseAction
 from lava_dispatcher.client.base import OperationFailed, CriticalError
-from lava_dispatcher.config import get_config
 
 
 def _install_lava_test(client, session):
@@ -38,7 +37,7 @@ 
     session.run(cmd, timeout=2400)
     session.run("apt-get -y install python-pip")
 
-    dispatcher_config = get_config("lava-dispatcher")
+    dispatcher_config = client.context.config
     lava_test_url = dispatcher_config.get("LAVA_TEST_URL")
     logging.debug("Installing %s with pip" % lava_test_url)
     session.run('pip install -e ' + lava_test_url)