Created
June 24, 2014 16:49
-
-
Save anonymous/52910396b19825950bf4 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
{% set foo = "c:\salt\conf\foo.txt" %} | |
{{ foo }}: | |
file.absent |
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
c:\salt>salt-call state.sls test | |
[INFO ] Loading fresh modules for state activity | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'test.sls' | |
[CRITICAL] Rendering SLS "test" failed: Unknown yaml render | |
error; line 3 | |
--- | |
c:\salt\conf | |
oo.txt: <====================== | |
file.absent | |
--- | |
local: | |
Data failed to compile: | |
---------- | |
Rendering SLS "test" failed: Unknown yaml render error; | |
line 3 | |
--- | |
c:\salt\conf | |
oo.txt: <====================== | |
file.absent | |
--- |
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
c:\salt>salt-call state.sls test | |
[INFO ] Loading fresh modules for state activity | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'test.sls' | |
[CRITICAL] Rendering SLS settings.minion failed, render error: unacceptable char | |
acter #x0008: special characters are not allowed | |
in "<unicode string>", position 55 | |
Traceback (most recent call last): | |
File "salt/state.py", line 2095, in render_state | |
File "salt/template.py", line 74, in compile_template | |
File "salt/renderers/yaml.py", line 43, in render | |
File "yaml/__init__.py", line 69, in load | |
File "salt/renderers/yaml.py", line 28, in yaml_loader | |
File "salt/utils/yamlloader.py", line 39, in __init__ | |
File "yaml/loader.py", line 24, in __init__ | |
File "yaml/reader.py", line 74, in __init__ | |
File "yaml/reader.py", line 144, in check_printable | |
ReaderError: unacceptable character #x0008: special characters are not allowed | |
in "<unicode string>", position 55 | |
local: | |
Data failed to compile: | |
---------- | |
Rendering SLS settings.minion failed, render error: unacceptable character # | |
x0008: special characters are not allowed | |
in "<unicode string>", position 55 | |
Traceback (most recent call last): | |
File "salt/state.py", line 2095, in render_state | |
File "salt/template.py", line 74, in compile_template | |
File "salt/renderers/yaml.py", line 43, in render | |
File "yaml/__init__.py", line 69, in load | |
File "salt/renderers/yaml.py", line 28, in yaml_loader | |
File "salt/utils/yamlloader.py", line 39, in __init__ | |
File "yaml/loader.py", line 24, in __init__ | |
File "yaml/reader.py", line 74, in __init__ | |
File "yaml/reader.py", line 144, in check_printable | |
ReaderError: unacceptable character #x0008: special characters are not allowed | |
in "<unicode string>", position 55 |
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
{% set foo = "/salt/conf/foo.txt" %} | |
{{ foo }}: | |
file.absent |
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
[INFO ] output: | |
local: | |
---------- | |
ID: /salt/conf/foo.txt | |
Function: file.absent | |
Result: True | |
Comment: File /salt/conf/foo.txt is not present | |
Changes: | |
Summary | |
------------ | |
Succeeded: 1 | |
Failed: 0 | |
------------ | |
Total: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment