mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added debug logic to determine correct value for test localhost on IPv6
This commit is contained in:
parent
66fd7a5096
commit
6809e97146
1 changed files with 8 additions and 1 deletions
|
@ -1389,6 +1389,13 @@ def test_ip_to_host(grains):
|
|||
|
||||
ret = network.ip_to_host("::1")
|
||||
|
||||
dgm_os = grains["os"]
|
||||
dgm_fam = grains["os_family"]
|
||||
dgm_codename = grains["oscodename"]
|
||||
print(
|
||||
f"DGM grains os '{dgm_os}', os_family '{dgm_fam}', oscodename '{dgm_codename}', ret '{ret}'"
|
||||
)
|
||||
|
||||
if grains["os"] == "Amazon":
|
||||
assert ret == "localhost6"
|
||||
elif grains["os_family"] == "Debian":
|
||||
|
@ -1402,7 +1409,7 @@ def test_ip_to_host(grains):
|
|||
else:
|
||||
assert ret == "localhost"
|
||||
elif grains["os_family"] == "Arch":
|
||||
assert ret == "ip6-localhost"
|
||||
assert ret == "localhost"
|
||||
else:
|
||||
assert ret == "localhost"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue