Commit f2c4a871 authored by Jeremy Hylton's avatar Jeremy Hylton

Repair code to set the monitor server address.

parent 4607713c
...@@ -160,13 +160,16 @@ def main(): ...@@ -160,13 +160,16 @@ def main():
addr = ('localhost', zeo_port) addr = ('localhost', zeo_port)
log(label, 'creating the storage server') log(label, 'creating the storage server')
storage = zo.storages[0].open() storage = zo.storages[0].open()
mon_addr = None
if zo.monitor_address:
mon_addr = zo.monitor_address.address
server = ZEO.StorageServer.StorageServer( server = ZEO.StorageServer.StorageServer(
zo.address, zo.address,
{"1": storage}, {"1": storage},
read_only=zo.read_only, read_only=zo.read_only,
invalidation_queue_size=zo.invalidation_queue_size, invalidation_queue_size=zo.invalidation_queue_size,
transaction_timeout=zo.transaction_timeout, transaction_timeout=zo.transaction_timeout,
monitor_address=zo.monitor_address) monitor_address=mon_addr)
try: try:
log(label, 'creating the test server, keep: %s', keep) log(label, 'creating the test server, keep: %s', keep)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment