Message ID | 20111129093716.13982.23719.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== 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",