mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #29837 from lburg/fix_timezone_typo
states.timezone: Fix 'desrired' typo
This commit is contained in:
commit
7fed47d3a5
@ -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