windows_package 资源需要源参数
windows_package resource is demanding the source parameter
根据 chef doc 源参数是可选的,并且:
...If the source property is not specified, the package name MUST be
exactly the same as the display name...
我在添加删除程序和注册表中确认包是正确的(包括大小写),并在我的食谱中这样做:
windows_package 'My Package Name' do
action :remove
end
然而它抛出这个错误:
================================================================================
Error executing action `remove` on resource 'windows_package[My Package Name]'
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
source is required
需要来源?不,这不对!是文档有误还是我傻了?
已知问题,您可以在 https://github.com/chef/chef/issues/5274 关注它。
根据 chef doc 源参数是可选的,并且:
...If the source property is not specified, the package name MUST be exactly the same as the display name...
我在添加删除程序和注册表中确认包是正确的(包括大小写),并在我的食谱中这样做:
windows_package 'My Package Name' do
action :remove
end
然而它抛出这个错误:
================================================================================
Error executing action `remove` on resource 'windows_package[My Package Name]'
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
source is required
需要来源?不,这不对!是文档有误还是我傻了?
已知问题,您可以在 https://github.com/chef/chef/issues/5274 关注它。