mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Lint fixes
This commit is contained in:
parent
a78aab3255
commit
72db9026e1
@ -454,7 +454,7 @@ def get_hostname():
|
||||
'''
|
||||
cmd = 'wmic computersystem get name'
|
||||
ret = __salt__['cmd.run'](cmd=cmd)
|
||||
_,hostname = ret.split("\n")
|
||||
_, hostname = ret.split("\n")
|
||||
return hostname
|
||||
|
||||
|
||||
|
@ -121,11 +121,11 @@ class WinSystemTestCase(TestCase):
|
||||
|
||||
mock = MagicMock(return_value='salt')
|
||||
with patch.dict(win_system.__salt__, {"system.get_hostname": mock}):
|
||||
ret.update({'comment': "Hostname is already set to 'salt'",
|
||||
ret.update({'comment': "Hostname is already set to 'salt'",
|
||||
'changes': {},
|
||||
'result': True})
|
||||
|
||||
self.assertDictEqual(win_system.hostname('salt'), ret)
|
||||
self.assertDictEqual(win_system.hostname('salt'), ret)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user