Commit 3873040f authored by Chad Kerner's avatar Chad Kerner
Browse files

added logic to return a service check if the export node connects to the port.

parent 20456eab
......@@ -64,6 +64,8 @@ def fetch_quota_information( project_id, export ):
continue
if 'Filesystem' in line:
continue
if 'using default' in line:
continue
array = line.split()
......@@ -149,8 +151,10 @@ def accept_wrapper( sock ):
output += quota_info['flimit'] + ','
output += quota_info['fgrace']
output += "\n"
elif 'taiga-exp' in client_hostname:
output += 'Taiga remote df service is running.\n'
else:
output += 'HOST CONNECTION REJECTED. NO EXPORTS DEFINED.'
output += 'HOST CONNECTION REJECTED. NO EXPORTS DEFINED.\n'
conn.setblocking(False)
data = types.SimpleNamespace(addr=client_addr, inb=b'', outb=b'')
......
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