states.timezone: Fix 'desrired' typo

This commit is contained in:
lburg 2015-12-18 13:54:04 +01:00
parent 01807e15d5
commit 6d1ab2ece0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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