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

Use the correct methods for username information

parent d6d0ce5e
No related branches found
No related tags found
No related merge requests found
Pipeline #97461 failed
......@@ -135,12 +135,14 @@ module ForemanPasswordstate
logger.info 'Ensuring Passwordstate passwords are up-to-date...'
passwordstate_passwords.each do |password|
password.title = "#{password.username}@#{fqdn}"
password.description = "Foreman managed password for #{password.username} on #{fqdn} | #{stable_pw_desc.strip}"
password.title = "#{password.user_name}@#{fqdn}"
password.description = "Foreman managed password for #{password.user_name} on #{fqdn} | #{stable_pw_desc.strip}"
next unless password.send(:modified).any?
password.put
end
true
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