Browse Source

updated to replace "" with noname in the RegistrationName

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
8380cd6c2f
  1. 8
      pyweb/mumble/management.py

8
pyweb/mumble/management.py

@ -101,8 +101,14 @@ def find_existing_instances( **kwargs ):
instance = models.Mumble.objects.get( srvid=id );
except models.Mumble.DoesNotExist:
conf = murmur.getAllConf( dbus.Int32( id ) );
servername = find_in_dicts( "registerName", conf, default, "noname" );
if not servername:
# RegistrationName was found in the dicts, but is an empty string
servername = "noname";
values = {
"name": find_in_dicts( "registerName", conf, default, "noname" ),
"name": servername,
"srvid": id,
"dbus": dbusName,
"addr": find_in_dicts( ( "registerHostame", "host" ), conf, default, "0.0.0.0" ),

Loading…
Cancel
Save