Python 3 support: Switch to six library for unicode handling

This commit is contained in:
Alex Black 2016-12-29 11:12:56 -07:00
parent 2485a48e09
commit cf69cfcde0

View File

@ -10,6 +10,7 @@ from __future__ import absolute_import
# Import Python libs
import logging
from salt.ext import six
log = logging.getLogger(__name__)
@ -69,7 +70,7 @@ def present(name,
- sslVerify: False
'''
record_type = record_type.lower()
value_utf8 = unicode(value, "utf-8")
value_utf8 = six.text_type(value, "utf-8")
ret = {'name': name, 'result': True, 'comment': '', 'changes': {}}
records = __salt__['infoblox.get_record'](name,
record_type,