mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix issue with detecting powershell
This commit is contained in:
parent
2d1dd1186e
commit
3579534ea5
1 changed files with 2 additions and 3 deletions
|
@ -2749,9 +2749,8 @@ def shell_info(shell, list_modules=False):
|
|||
'HKEY_LOCAL_MACHINE',
|
||||
'Software\\Microsoft\\PowerShell\\{0}'.format(reg_ver),
|
||||
'Install')
|
||||
if 'vtype' in install_data and \
|
||||
install_data['vtype'] == 'REG_DWORD' and \
|
||||
install_data['vdata'] == 1:
|
||||
if install_data.get('vtype') == 'REG_DWORD' and \
|
||||
install_data.get('vdata') == salt.utils.to_unicode(1, 'mbcs'):
|
||||
details = __salt__['reg.list_values'](
|
||||
'HKEY_LOCAL_MACHINE',
|
||||
'Software\\Microsoft\\PowerShell\\{0}\\'
|
||||
|
|
Loading…
Add table
Reference in a new issue