我正在运行一个厨师收件人来安装Websphere fixpacks. fixpack retuns和exitcode [2]用于部分安装.这是一种预期的行为,但厨师只是将其视为错误.有没有办法覆盖它.
- ================================================================================
- Error executing action `run` on resource 'bash[was-install-fixpacks]'
- ================================================================================
- Mixlib::ShellOut::ShellCommandFailed
- ------------------------------------
- Expected process to exit with [0],but received '2'
快速浏览一下
documentation可以看出参数返回:
The return value for a command. This may be an array of accepted values. An exception is raised when the return value(s) do not match. Default value: 0.
例:
- bash "was-install-fixpacks" do
- command ..
- returns [0,2]
- end