mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
pchanges to changes
named parameters
This commit is contained in:
parent
16525e4312
commit
05852d0865
2 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,7 @@ def __virtual__():
|
|||
if not salt.utils.platform.is_windows():
|
||||
return False, 'Only available on Windows systems'
|
||||
|
||||
powershell_info = __salt__['cmd.shell_info']('powershell', True)
|
||||
powershell_info = __salt__['cmd.shell_info'](shell='powershell', list_modules=True)
|
||||
if not powershell_info['installed']:
|
||||
return False, 'PowerShell not available'
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ def installed(name, source):
|
|||
'changes': {},
|
||||
'result': False,
|
||||
'comment': '',
|
||||
'pchanges': {},
|
||||
}
|
||||
|
||||
# Start with basic error-checking. Do all the passed parameters make sense
|
||||
|
@ -68,7 +67,7 @@ def installed(name, source):
|
|||
# in ``test=true`` mode.
|
||||
if __opts__['test'] is True:
|
||||
ret['comment'] = 'The KB "{0}" will be installed.'.format(name)
|
||||
ret['pchanges'] = {
|
||||
ret['changes'] = {
|
||||
'old': current_state,
|
||||
'new': True,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue