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

Fix facet removal code

parent f62b3fa5
No related branches found
No related tags found
No related merge requests found
Pipeline #121171 passed
......@@ -36,11 +36,11 @@ module ForemanPasswordstate
private
def remove_passwordstate_facet
return unless host.passwordstate_facet
return unless @host.passwordstate_facet
host.remove_passwordstate_passwords!
host.passwordstate_facet.destroy
host.update passwordstate_facet_id: nil
@host.remove_passwordstate_passwords!
@host.passwordstate_facet.destroy
@host.update passwordstate_facet_id: nil
rescue StandardError => e
logger.error "Failed to remove passwordstate facet, #{e.class}: #{e} - #{e.backtrace}"
end
......
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