Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 3f0a7c4

Browse files
committed
#500: added some robustness
1 parent 4fc14b0 commit 3f0a7c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deploy/lib/server_config.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,12 @@ def initialize(options)
105105
@qconsole_port = @bootstrap_port
106106
end
107107

108-
r = execute_query %Q{xdmp:host-name()}
109-
@properties["ml.server-name"] = parse_body(r.body)
108+
begin
109+
r = execute_query %Q{xdmp:host-name()}
110+
@properties["ml.server-name"] = parse_body(r.body)
111+
rescue
112+
logger.warn "WARN: unable to determine MarkLogic Host name of #{@hostname}"
113+
end
110114
end
111115

112116
def get_properties

0 commit comments

Comments
 (0)