mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adjusted import to expose stringutils namespace
This commit is contained in:
parent
958c630e5c
commit
435afb76ad
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue