Add comment on None Statement

This commit is contained in:
twangboy 2018-03-06 12:19:59 -07:00
parent 76f273bfc8
commit 498a2c6873
No known key found for this signature in database
GPG Key ID: 93FF3BDEB278C9EB

View File

@ -83,6 +83,7 @@ def _to_unicode(vdata):
Converts from current users character encoding to unicode. Use this for
parameters being pass to reg functions
'''
# None does not convert to Unicode
if vdata is None:
return None
return salt.utils.stringutils.to_unicode(vdata, 'utf-8')