mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed win_wua example documentation
This commit is contained in:
parent
664043d7e7
commit
e2f0f16564
1 changed files with 9 additions and 9 deletions
|
@ -315,18 +315,18 @@ def list_update(name=None,
|
|||
|
||||
# Recommended Usage using GUID without braces
|
||||
# Use this to find the status of a specific update
|
||||
salt '*' wua.list_update 12345678-abcd-1234-abcd-1234567890ab
|
||||
salt '*' win_wua.list_update 12345678-abcd-1234-abcd-1234567890ab
|
||||
|
||||
# Use the following if you don't know the GUID:
|
||||
|
||||
# Using a KB number (could possibly return multiple results)
|
||||
# Not all updates have an associated KB
|
||||
salt '*' wua.list_update KB3030298
|
||||
salt '*' win_wua.list_update KB3030298
|
||||
|
||||
# Using part or all of the name of the update
|
||||
# Could possibly return multiple results
|
||||
# Not all updates have an associated KB
|
||||
salt '*' wua.list_update 'Microsoft Camera Codec Pack'
|
||||
salt '*' win_wua.list_update 'Microsoft Camera Codec Pack'
|
||||
|
||||
"""
|
||||
if name is None:
|
||||
|
@ -492,22 +492,22 @@ def list_updates(software=True,
|
|||
.. code-block:: bash
|
||||
|
||||
# Normal Usage (list all software updates)
|
||||
salt '*' wua.list_updates
|
||||
salt '*' win_wua.list_updates
|
||||
|
||||
# List all updates with categories of Critical Updates and Drivers
|
||||
salt '*' wua.list_updates categories=['Critical Updates','Drivers']
|
||||
salt '*' win_wua.list_updates categories=['Critical Updates','Drivers']
|
||||
|
||||
# List all Critical Security Updates
|
||||
salt '*' wua.list_updates categories=['Security Updates'] severities=['Critical']
|
||||
salt '*' win_wua.list_updates categories=['Security Updates'] severities=['Critical']
|
||||
|
||||
# List all updates with a severity of Critical
|
||||
salt '*' wua.list_updates severities=['Critical']
|
||||
salt '*' win_wua.list_updates severities=['Critical']
|
||||
|
||||
# A summary of all available updates
|
||||
salt '*' wua.list_updates summary=True
|
||||
salt '*' win_wua.list_updates summary=True
|
||||
|
||||
# A summary of all Feature Packs and Windows 8.1 Updates
|
||||
salt '*' wua.list_updates categories=['Feature Packs','Windows 8.1'] summary=True
|
||||
salt '*' win_wua.list_updates categories=['Feature Packs','Windows 8.1'] summary=True
|
||||
|
||||
"""
|
||||
# Get the list of updates
|
||||
|
|
Loading…
Add table
Reference in a new issue