mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Python 3 support: Switch to six library for unicode handling
This commit is contained in:
parent
2485a48e09
commit
cf69cfcde0
@ -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…
Reference in New Issue
Block a user