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

Destroy WDS facets on host destruction

parent 2a20a8cf
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,12 @@ module ForemanWds
base.class_eval do
after_build :ensure_wds_client
before_provision :remove_wds_client
has_one :wds_facet,
class_name: '::ForemanWds::WdsFacet',
foreign_key: :host_id,
inverse_of: :host,
dependent: :destroy
end
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