Adjusted import to expose stringutils namespace

This commit is contained in:
Gabriel 2018-10-08 16:45:10 -04:00 committed by rallytime
parent 958c630e5c
commit 435afb76ad
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -156,9 +156,9 @@ import salt.utils.files
import salt.utils.minions
import salt.utils.path
import salt.utils.stringio
import salt.utils.stringutils
import salt.template
from salt.ext import six
from salt.utils.stringutils import to_str
# Set up logging
log = logging.getLogger(__name__)
@ -252,7 +252,7 @@ def _construct_pillar(top_dir,
else:
data = contents
if template is True:
data = salt.template.compile_template_str(template=to_str(contents),
data = salt.template.compile_template_str(template=salt.utils.stringutils.to_str(contents),
renderers=renderers,
default=render_default,
blacklist=renderer_blacklist,