mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix ip_to_host on photon
This commit is contained in:
parent
0193650b8a
commit
f3ef32f6d4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue