Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working with salt-ssh #196

Open
grimaz opened this issue Sep 3, 2019 · 1 comment
Open

not working with salt-ssh #196

grimaz opened this issue Sep 3, 2019 · 1 comment

Comments

@grimaz
Copy link

grimaz commented Sep 3, 2019

Sample sls

php:
  warning_messages:
    v1.0.0:
      mute_critical: true
      mute_upcoming: true
  use_external_repo: true
  external_repo_name: 'ondrej/php'
  version: "7.3"

  modules:
    - cli
    - curl
    - mysql

  use_apache_formula: true

produces the error

[DEBUG   ] Results of YAML rendering:
OrderedDict([(u'php_ppa_php', OrderedDict([(u'pkgrepo.managed', [OrderedDict([(u'ppa', u'ondrej/php')]), OrderedDict([(u'__env__', [OrderedDict([(u'LC_ALL', u'C.UTF-8')])])]), OrderedDict([(u'onlyif', [u'test ! -e /etc/apt/sources.list.d/ondrej-ubuntu-php-xenial.list', u'test ! -e /etc/apt/sources.list.d/ondrej-php-xenial.list'])]), OrderedDict([(u'require_in', [OrderedDict([(u'pkg', u'php_install_php')])])])]), (u'pkg.latest', [OrderedDict([(u'name', u'php')]), OrderedDict([(u'pkgs', [u'php7.3'])]), OrderedDict([(u'refresh', True)]), OrderedDict([(u'onchanges', [OrderedDict([(u'pkgrepo', u'php_ppa_php')])])])])])), (u'php_install_php', OrderedDict([(u'pkg.installed', [OrderedDict([(u'name', u'php')]), OrderedDict([(u'pkgs', [u'php7.3'])])])]))])
[PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/php/init.sls' using 'yaml' renderer: 0.00143599510193
[ERROR   ] TypeError encountered executing state.apply: unhashable type: 'list'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/__init__.py", line 1180, in run_wfunc
    result = self.wfuncs[self.fun](*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/wrapper/state.py", line 522, in apply_
    return highstate(**kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/wrapper/state.py", line 694, in highstate
    opts.get('extra_filerefs', '')
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/state.py", line 138, in lowstate_file_refs
    if saltenv not in refs:
TypeError: unhashable type: 'list'
@BillyBombardieri
Copy link

I have this also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants