Fix ip_to_host on photon

This commit is contained in:
Daniel A. Wozniak 2024-12-20 20:28:26 -07:00 committed by Daniel Wozniak
parent 0193650b8a
commit f3ef32f6d4

View file

@ -1460,7 +1460,7 @@ def test_ip_to_host(grains):
ret = network.ip_to_host("127.0.0.1")
if grains.get("oscodename") == "Photon":
# Photon returns this for IPv4
assert ret == "ipv6-localhost"
assert ret in ("ipv6-localhost", "localhost")
else:
assert ret == hostname