Commit 5778ad17 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

erp5-show: support Zope 4 HTML content

See merge request nexedi/slapos.package!190
parents 4bfa26d7 2d8410f1
Pipeline #32028 running with stage
......@@ -147,7 +147,9 @@ def status():
try:
r1 = urllib.request.urlopen(frontend, context=ctx)
if b'Zope Management Interface' in r1.read():
r1_content = r1.read()
if b'Zope Management Interface' in r1_content or \
(b'Zope' in r1_content and b'Auto-generated default page' in r1_content):
connected = True
else:
print('URL %s ready, but does not reply with Zope' % frontend)
......
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