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:
turnred 2015-09-10 09:55:44 +02:00 committed by rallytime
parent 5389a85894
commit 2bfdd9724e

View file

@ -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))