[serverctl] avoid a crash if zmq-address is not defined/empty (config.get is a false friend wrt dict behaviour)
--- a/server/serverctl.py Thu Apr 12 19:08:30 2012 +0200
+++ b/server/serverctl.py Wed Apr 25 11:39:14 2012 +0200
@@ -662,7 +662,7 @@
def create_repo(self, config):
address = self['address']
if not address:
- address = config.get('zmq-repository-address', 'pyro://')
+ address = config.get('zmq-repository-address') or 'pyro://'
if address.startswith('pyro://'):
from cubicweb.server.server import RepositoryServer
return RepositoryServer(config), config['host']