Last active
November 17, 2017 21:03
-
-
Save phsteve/e327c0bbb254f2b0f93a377139480c54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error is first, contents of relevant .sls file is at the end | |
$ sudo salt 'dvskatzvm01*' state.apply test=True -t 60 | |
dvskatzvm01.ny3.corp.portware.net: | |
Data failed to compile: | |
---------- | |
Rendering SLS common.states.salt-pip-packages failed, render error: unacceptable character #x0007: special characters are not allowed | |
in "<unicode string>", position 443 | |
Traceback (most recent call last): | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/salt/state.py", line 2971, in render_state | |
rendered_sls=mods | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/salt/template.py", line 101, in compile_template | |
ret = render(input_data, saltenv, sls, **render_kwargs) | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/salt/renderers/yaml.py", line 54, in render | |
data = load(yaml_data, Loader=get_yaml_loader(argline)) | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/yaml/__init__.py", line 69, in load | |
loader = Loader(stream) | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/salt/renderers/yaml.py", line 39, in yaml_loader | |
return SaltYamlSafeLoader(*args, dictclass=OrderedDict) | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/salt/utils/yamlloader.py", line 39, in __init__ | |
yaml.SafeLoader.__init__(self, stream) | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/yaml/loader.py", line 24, in __init__ | |
Reader.__init__(self, stream) | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/yaml/reader.py", line 74, in __init__ | |
self.check_printable(stream) | |
File "/opt/factset-salt-minion/env/lib/python2.6/site-packages/yaml/reader.py", line 144, in check_printable | |
'unicode', "special characters are not allowed") | |
ReaderError: unacceptable character #x0007: special characters are not allowed | |
in "<unicode string>", position 443 | |
content of common/states/salt-pip-packages.sls: | |
{% from "common/states/map.jinja" import env_dir with context %} | |
python-dateutil: | |
pip.installed: | |
- bin_env: {{ env_dir }} | |
- cwd: {{ env_dir }} | |
- onchanges_in: | |
- cmd: Restart Salt minion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment