mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixes wrong function scope
`sdecode` is not in `salt.utils` but rather in `salt.utils.locales`. This causes Python to throw an exception when executing `win_update.list_updates verbose`: ``` The minion function caused an exception: Traceback (most recent call last): File "c:\salt\bin\lib\site-packages\salt\minion.py", line 1036, in _thread_return return_data = func(*args, **kwargs) File "c:\salt\bin\lib\site-packages\salt\modules\win_update.py", line 512, in list_updates return str(quidditch.GetSearchResultsPretty()) File "c:\salt\bin\lib\site-packages\salt\modules\win_update.py", line 310, in GetSearchResultsPretty updates = self.GetSearchResults() File "c:\salt\bin\lib\site-packages\salt\modules\win_update.py", line 305, in GetSearchResults updates.append(salt.utils.sdecode(update)) AttributeError: 'module' object has no attribute 'sdecode' ```
This commit is contained in:
parent
1c6c9b1a06
commit
1cb1c2da07
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ class PyWinUpdater(object):
|
|||
if update.InstallationBehavior.CanRequestUserInput:
|
||||
log.debug('Skipped update {0}'.format(str(update)))
|
||||
continue
|
||||
updates.append(salt.utils.sdecode(update))
|
||||
updates.append(salt.utils.locales.sdecode(update))
|
||||
log.debug('added update {0}'.format(str(update)))
|
||||
return updates
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue