On Friday August 14th. from 9 p.m. to 9:30 p.m., we will upgrade GitLab software and its cloud platform release. Service may not be available during this maintenance window. Please schedule your work accordingly.

Commit a32eb4e5 authored by Marcello Golfieri's avatar Marcello Golfieri

added support for multiple hosts separated by comma and no spaces

parent 77f95cc2
......@@ -32,6 +32,11 @@ def is_ip_address(addr):
def resolve_to_ip(host):
logger.debug("Resolving for: %s", host)
host = host.strip()
if ',' in host:
listing=[]
for h in host.split(','):
listing.append(str(resolve_to_ip(h)))
return ','.join(listing)
if host.endswith(".local"):
return None
try:
......
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