mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Use salt.utils.platform for OS detection
This commit is contained in:
parent
98cb94ae73
commit
b24a8c3653
@ -815,7 +815,7 @@ SwapTotal: 4789244 kB'''
|
||||
_check_type(key, value, ip4_empty, ip6_empty)
|
||||
|
||||
@skipIf(not salt.utils.platform.is_linux(), 'System is not Linux')
|
||||
@patch.object(salt.utils, 'is_windows', MagicMock(return_value=False))
|
||||
@patch.object(salt.utils.platform, 'is_windows', MagicMock(return_value=False))
|
||||
@patch('salt.grains.core.__opts__', {'ipv6': False})
|
||||
def test_dns_return(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user