Commit 0822cf63 authored by Pit Kleyersburg's avatar Pit Kleyersburg Committed by maxbecke
Browse files

Add comment explaining the "double" DNS comparison

parent 07423ed9
......@@ -608,6 +608,7 @@ def match_device(config, device):
fs_id = efs_fqdn_match.group('fs_id')
expected_dns_name = get_dns_name(config, fs_id)
# check that the DNS name of the mount target matches exactly the DNS name the CNAME resolves to
if hostname == expected_dns_name:
return fs_id, path
else:
......
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