use_etag
was not introduced until later versions of Chef (11.6.0 if I recall correctly). You may need to upgrade your Chef version.
Chef undefined method `use_etag' for Chef::Resource::RemoteFile
-
22-07-2023 - |
Вопрос
When I run my cookbook on a node I get a compile error: "undefined method `use_etag' for Chef::Resource::RemoteFile" on my remote_file resource:
remote_file to.deb do
mode 0644
source 'https://path.com/to.deb'
use_etag true
use_conditional_get true
end
According to Chef doc, use_etag is a attribute of remote_file.
Решение
Не связан с StackOverflow