Skip to content

Instantly share code, notes, and snippets.

Created September 14, 2017 16:40
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/026964c5dd8fa4051f18bb6bdb7d4916 to your computer and use it in GitHub Desktop.
Save anonymous/026964c5dd8fa4051f18bb6bdb7d4916 to your computer and use it in GitHub Desktop.
ssh_auth.present unhashable type list
...
ssh_auth.present:
- require:
- user: foo
- user: foo
- source:
- salt://users/files/ssh_public_keys/foo.id_rsa.pub
- config: /%h/.ssh/authorized_keys
017-09-14 10:24:51,374 [salt.state ][ERROR ][122578] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1745, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1702, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/salt/states/ssh_auth.py", line 281, in present
config,
File "/usr/lib/python2.7/site-packages/salt/states/ssh_auth.py", line 68, in _present_test
saltenv=__env__)
File "/usr/lib/python2.7/site-packages/salt/modules/ssh.py", line 383, in check_key_file
keyfile = __salt__['cp.cache_file'](source, saltenv)
File "/usr/lib/python2.7/site-packages/salt/modules/cp.py", line 380, in cache_file
path_is_remote = _urlparse(path).scheme in ('http', 'https', 'ftp')
File "/usr/lib64/python2.7/urlparse.py", line 142, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
File "/usr/lib64/python2.7/urlparse.py", line 175, in urlsplit
cached = _parse_cache.get(key, None)
TypeError: unhashable type: 'list'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment