Skip to content
Snippets Groups Projects
Verified Commit d293df39 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Use the correct digest method for placeholder

parent e0e031e3
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ module ForemanPasswordstate
host_pass(root_user, password_hash: operatingsystem&.password_hash)
rescue StandardError => e
logger.error "Failed to get root_pass for #{self} - #{e.class}: #{e}"
return Digest::SHA256.digest("#{id}-PlaceholderDueToPasswordstateError")
return Digest::SHA256.hexdigest("#{id}-PlaceholderDueToPasswordstateError")
end
def remove_passwordstate_passwords!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment