mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adding support for skipHidden in SetInclude
`skipHidden` skips hidden updates accordingly, but any changes to the 'hidden' key:value in the `includes` parameter won't be reflected in the object's variable `self.skipHidden` as `SetInclude` ignores that. This commit fixes that. See https://github.com/saltstack/salt/issues/30081 for more information.
This commit is contained in:
parent
1244eea5be
commit
30e1fef906
1 changed files with 4 additions and 2 deletions
|
@ -342,13 +342,15 @@ class PyWinUpdater(object):
|
|||
self.skipReboot = state
|
||||
elif include == 'present':
|
||||
self.skipPresent = state
|
||||
elif include == 'hidden':
|
||||
self.skipHidden = state
|
||||
elif include == 'software':
|
||||
self.skipSoftwareUpdates = state
|
||||
elif include == 'driver':
|
||||
self.skipDriverUpdates = state
|
||||
log.debug('new search state: \n\tUI: {0}\n\tDownload: {1}\n\tInstalled: {2}\n\treboot :{3}\n\tPresent: {4}\n\tsoftware: {5}\n\tdriver: {6}'.format(
|
||||
log.debug('new search state: \n\tUI: {0}\n\tDownload: {1}\n\tInstalled: {2}\n\treboot :{3}\n\tPresent: {4}\n\thidden: {5}\n\tsoftware: {6}\n\tdriver: {7}'.format(
|
||||
self.skipUI, self.skipDownloaded, self.skipInstalled, self.skipReboot,
|
||||
self.skipPresent, self.skipSoftwareUpdates, self.skipDriverUpdates))
|
||||
self.skipPresent, self.skipHidden, self.skipSoftwareUpdates, self.skipDriverUpdates))
|
||||
|
||||
def __str__(self):
|
||||
results = 'There are {0} updates, by category there are:\n'.format(
|
||||
|
|
Loading…
Add table
Reference in a new issue