mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use long when setting REG_QWORD
This commit is contained in:
parent
88673ad9e7
commit
4644bb63f2
1 changed files with 3 additions and 0 deletions
|
@ -767,6 +767,9 @@ def cast_vdata(vdata=None, vtype='REG_SZ'):
|
|||
# Make sure REG_MULTI_SZ is a list of strings
|
||||
elif vtype_value == win32con.REG_MULTI_SZ:
|
||||
return [_to_unicode(i) for i in vdata]
|
||||
# Make sure REG_QWORD is a 64 bit integer
|
||||
elif vtype_value == win32con.REG_QWORD:
|
||||
return vdata if six.PY3 else long(vdata)
|
||||
# Everything else is int
|
||||
else:
|
||||
return int(vdata)
|
||||
|
|
Loading…
Add table
Reference in a new issue