为什么这个state.sls不工作?
install_ports:
- ports.update:
- extract: True运行时
salt '*' state.highstate我得到一个返回值:
SaltMaster:
Data failed to compile:
----------
ID install_ports in SLS FreeBSD.11_0.ports is not a dictionary
ERROR: Minions returned with non-zero exit code
root@SaltMaster [~]$我的工作依据是:
https://docs.saltstack.com/en/2015.8/ref/modules/all/salt.modules.freebsdports.html
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ports.html#module-salt.states.ports
发布于 2017-03-16 00:10:38
以"-“开头的行是YAMl列表中的项,”install_ports“行需要一个字典。
因此,您应该将'- ports.update:‘更改为'ports.update:’以消除错误。
https://stackoverflow.com/questions/42774016
复制相似问题