Private GIT

Skip to content
Snippets Groups Projects
Commit dccf0ee7 authored by Girts's avatar Girts
Browse files

parse "retries" from config as int

parent cb7fbbb4
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ def main():
url = '%sdomains/%s/records/%s/A' % (config.get(section, 'api'), config.get(section, 'domain'), config.get(section, 'a_name'))
print(url)
#Discover External IP
retries = config.get(section, 'retries', fallback=DEFAULT_RETRIES)
retries = int(config.get(section, 'retries', fallback=DEFAULT_RETRIES))
external_ip = get_ip(retries)
print(('External IP is: %s' % external_ip))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment