diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 303: Fix instane handling (default instance was wrong)

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

Commit Message

Zygmunt Krynicki Nov. 29, 2011, 9:37 a.m. UTC
------------------------------------------------------------
revno: 303
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: lava-server
timestamp: Tue 2011-11-22 01:51:14 +0100
message:
  Fix instane handling (default instance was wrong)
modified:
  lava_server/manage.py


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

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

Patch

=== modified file 'lava_server/manage.py'
--- lava_server/manage.py	2011-11-21 00:04:17 +0000
+++ lava_server/manage.py	2011-11-22 00:51:14 +0000
@@ -78,8 +78,8 @@ 
         group.add_argument(
             "-i", "--instance",
             action="store",
-            default='lava' if 'VIRTUAL_ENV' in os.environ else None,
-            help="Use the specified instance (works only with --production)")
+            default=os.environ.get('LAVA_INSTANCE', os.path.basename(os.environ.get('VIRTUAL_ENV', '') or None),
+            help="Use the specified instance (works only with --production, default %(default)s)")
         group.add_argument(
             "-I", "--instance-template",
             action="store",