You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to set up a new node with x509. I'm getting a very ambiguous error when I run chef-client on the bootstrapped node.
What appears to be happening is that on line 30 of providers/certificate.rb:
# Try to find this certificate in the data bag.
certbag = search(:certificates, "id:#{cert_id}").first
if certbag
# Data bag item found - the CSR was processed, and can be removed
# from the outbox
if node.attribute?('csr_outbox')
if node.set['csr_outbox'].delete(new_resource.name)
new_resource.updated_by_last_action(true)
end
end
else
certbag ||= {}
end
You're doing a search for the certificate. The Chef API returns a 404 exception if it's not found, but you're not capturing the 404 error. Is this correct?
Is this fix as simple as catching an exception?
The text was updated successfully, but these errors were encountered:
I'm attempting to set up a new node with x509. I'm getting a very ambiguous error when I run chef-client on the bootstrapped node.
What appears to be happening is that on line 30 of providers/certificate.rb:
You're doing a search for the certificate. The Chef API returns a 404 exception if it's not found, but you're not capturing the 404 error. Is this correct?
Is this fix as simple as catching an exception?
The text was updated successfully, but these errors were encountered: