mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
states.timezone: Fix 'desrired' typo
This commit is contained in:
parent
01807e15d5
commit
6d1ab2ece0
@ -63,7 +63,7 @@ def system(name, utc=True):
|
||||
except (SaltInvocationError, CommandExecutionError) as exc:
|
||||
ret['result'] = False
|
||||
ret['comment'] = (
|
||||
'Unable to compare desrired timezone {0!r} to system timezone: {1}'
|
||||
'Unable to compare desired timezone {0!r} to system timezone: {1}'
|
||||
.format(name, exc)
|
||||
)
|
||||
return ret
|
||||
|
@ -46,7 +46,7 @@ class TimezoneTestCase(TestCase):
|
||||
with patch.dict(timezone.__salt__, {"timezone.zone_compare": mock,
|
||||
"timezone.get_hwclock": mock1,
|
||||
"timezone.set_hwclock": mock2}):
|
||||
ret.update({'comment': "Unable to compare desrired timezone"
|
||||
ret.update({'comment': "Unable to compare desired timezone"
|
||||
" 'salt' to system timezone: ", 'result': False})
|
||||
self.assertDictEqual(timezone.system('salt'), ret)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user