mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix 'dict' object has no attribute split
After updating to 2015.5.5 the state calls of win_path.exists suddenly were broken due to the change in the reg.py module. This commit fixes the win_path.exists read_key implementation to fit the reg.read_value implementation that was discussed in https://github.com/saltstack/salt/issues/25618
This commit is contained in:
parent
5389a85894
commit
2bfdd9724e
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ def get_path():
|
|||
'''
|
||||
ret = __salt__['reg.read_key']('HKEY_LOCAL_MACHINE',
|
||||
'SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment',
|
||||
'PATH').split(';')
|
||||
'PATH')
|
||||
ret = ret['vdata'].split(';')
|
||||
|
||||
# Trim ending backslash
|
||||
return list(map(_normalize_dir, ret))
|
||||
|
|
Loading…
Add table
Reference in a new issue