Lint fixes

This commit is contained in:
Daniel Hobley 2015-10-29 12:02:14 +01:00
parent a78aab3255
commit 72db9026e1
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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__':