diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 237: Fix django-debian settings template verification

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

Commit Message

Zygmunt Krynicki Sept. 7, 2011, 4:40 p.m. UTC
------------------------------------------------------------
revno: 237
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: trunk
timestamp: Wed 2011-09-07 18:39:04 +0200
message:
  Fix django-debian settings template verification
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-09-07 16:19:46 +0000
+++ lava_server/manage.py	2011-09-07 16:39:04 +0000
@@ -90,10 +90,8 @@ 
         else:
             settings_module = "lava_server.settings.development"
         if self.args.instance:
-            if not os.path.isdir(self.args.instance):
-                self.parser.error("Specified instance does not exsit")
-            os.environ["DJANGO_DEBIAN_SETTINGS_TEMPLATE"] = (
-                self.args.instance_template.format(instance=self.args.instance))
+            ddst = self.args.instance_template.format(instance=self.args.instance)
+            os.environ["DJANGO_DEBIAN_SETTINGS_TEMPLATE"] = ddst
         settings = __import__(settings_module, fromlist=[''])
         from django.core.management import execute_manager
         execute_manager(settings, ['lava-server'] + self.args.command)