(SaltStack) ID dog in SLS dog is not a dictionary

巧了我就是萌 提交于 2019-12-05 04:34:31

It should probably look like this:

dog:
  file.replace:    # <--------this line was your problem.
    - name: /etc/modules
    - pattern: 'bcm2708_wdog'
    - append_if_not_found: True

Lines beginning with "-" denote items in a list. In your version, you've defined the top-level "dog" element as a list containing a dictionary. Salt expects it to be a straight dictionary instead, hence the error.

Depending on your version, in 2018

You will get that message if wrote the state with just 'file.replace' without the "dog" on top.

file.replace: - name: /etc/modules - pattern: 'bcm2708_wdog' - append_if_not_found: True

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!