你如何在盐中使用排除

时间:2018-06-08 20:33:55

标签: salt-stack

我试图在盐状态下使用以下块

exclude:
  - id: nopesir

但这会产生以下堆栈跟踪。

Traceback (most recent call last):
File "/bin/salt-call", line 11, in <module> salt_call()
File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 400, in salt_call
client.run()
File "/usr/lib/python2.7/site-packages/salt/cli/call.py", line 57, in run
caller.run()
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 134, in run
ret = self.call()
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 212, in call
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/salt/modules/state.py", line 749, in apply_
return highstate(**kwargs)
File "/usr/lib/python2.7/site-packages/salt/modules/state.py", line 1055, in highstate
orchestration_jid=orchestration_jid)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 3881, in call_highstate
return self.state.call_high(high, orchestration_jid)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 2693, in call_high
high, req_in_errors = self.requisite_in(high)
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1560, in requisite_in
if not state.startswith('__')]:
AttributeError: 'OrderedDict' object has no attribute 'startswith'

我试图效仿the documentation中的例子,但我必须忽视某些事情。

我正在使用版本2018.3.0。

0 个答案:

没有答案
相关问题