if line.startswith("allowed_hosts=") and ' ' in line:
machines, line = line.split('=', 1)[1].split(' ', 1)
if CurrentHost not in machines.split(','):
if line.startswith("allowed_hosts=") and ' ' in line:
machines, line = line.split('=', 1)[1].split(' ', 1)
if CurrentHost not in machines.split(','):