Skip to content

Instantly share code, notes, and snippets.

Last active May 26, 2016 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c7d932fb5791ab4b94d5419d03d41eb7 to your computer and use it in GitHub Desktop.
Save anonymous/c7d932fb5791ab4b94d5419d03d41eb7 to your computer and use it in GitHub Desktop.
proxy:
file.blockreplace:
- name: /etc/environment
- marker_start: "# BLOCK TOP : salt managed zone : proxy : please do not edit"
- marker_end: "# BLOCK BOTTOM : end of salt managed zone --"
- source:
- salt://files/etc/bla
- salt://files/etc/environment
- show_changes: True
- append_if_not_found: True
----------
ID: proxy
Function: file.blockreplace
Name: /etc/environment
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1624, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1492, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 3075, in blockreplace
context=context)
File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 716, in _get_template_texts
**kwargs
File "/usr/lib/python2.7/dist-packages/salt/modules/cp.py", line 266, in get_template
**kwargs)
File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 724, in get_template
url_data = urlparse(url)
File "/usr/lib/python2.7/urlparse.py", line 143, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
File "/usr/lib/python2.7/urlparse.py", line 176, in urlsplit
cached = _parse_cache.get(key, None)
TypeError: unhashable type: 'list'
Started: 09:55:05.453127
Duration: 2.968 ms
Changes:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment