Commit ec47c8e3 authored by Jérome Perrin's avatar Jérome Perrin

resiliencytestsuite: python3 fix

urlopen(url).read() returns bytes, this fixes:

      File "slapos.toolbox-repository/slapos/resiliencytest/suites/resiliencytestsuite.py", line 162, in _waitForCloneToBeReadyForTakeover
        while "<b>Importer script(s) of backup in progress:</b> True" in takeover_page_content:
    TypeError: a bytes-like object is required, not 'str'

errors with KVM resilience tests
parent 68eb1dbf
Pipeline #23105 passed with stage
in 0 seconds
......@@ -159,7 +159,7 @@ class ResiliencyTestSuite(object):
# Connect to takeover web interface and wait for importer script to be not running
takeover_page_content = urlopen(takeover_url).read()
while "<b>Importer script(s) of backup in progress:</b> True" in takeover_page_content:
while b"<b>Importer script(s) of backup in progress:</b> True" in takeover_page_content:
time.sleep(10)
takeover_page_content = urlopen(takeover_url).read()
return
......
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