mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Python 3 support: Switch to six library for unicode handling
This commit is contained in:
parent
2485a48e09
commit
cf69cfcde0
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue