Merge pull request #29837 from lburg/fix_timezone_typo

states.timezone: Fix 'desrired' typo
This commit is contained in:
Mike Place 2015-12-18 09:01:29 -07:00
commit 7fed47d3a5
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)