From 626888c2e3142b320941d298421096d1f4c65b86 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sun, 21 Feb 2010 13:28:54 +0100 Subject: [PATCH] fix icesecret not having been entered into the db if meta has been entered into the db by the conversion --- pyweb/mumble/management/server_detect.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyweb/mumble/management/server_detect.py b/pyweb/mumble/management/server_detect.py index ca5faef..5ffb748 100644 --- a/pyweb/mumble/management/server_detect.py +++ b/pyweb/mumble/management/server_detect.py @@ -97,7 +97,9 @@ def find_existing_instances( **kwargs ): try: meta = models.MumbleServer.objects.get( dbus=dbusName ); except models.MumbleServer.DoesNotExist: - meta = models.MumbleServer( dbus=dbusName, secret=icesecret ); + meta = models.MumbleServer( dbus=dbusName ); + finally: + meta.secret = icesecret; meta.save(); for id in servIDs: