Commit fc2d0be7 authored by Gael's avatar Gael
Browse files

Raise an exception when wait for record timeout

parent f1da0f32
......@@ -147,7 +147,7 @@ class _OvhClient(object):
logger.info(" + Record not available yet. Checking again in {}s...".format(check_interval))
except dns.exception.Timeout:
logger.info(" + DNS Request timeout. Checking again in {}s...".format(check_interval))
logger.debug("Got: " + str(', '.join(txt_values)) + " / Expecting: " + str(record_content))
logger.debug("+ Got: " + str(', '.join(txt_values)) + " / Expecting: " + str(record_content))
time.sleep(check_interval)
raise Exception('Timeout waiting for record visibility in domain NS. Domain: {} - Record: {} - Value: {}'.format(domain, record_name, record_value))
Supports Markdown
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