From 62626005391e2e76514da47b88f10f612b0101f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Tue, 9 Jan 2024 14:22:14 +0100 Subject: [PATCH] Fixes #37027 - Set up sp-reference to scap proxy (#555) --- app/models/concerns/foreman_openscap/host_extensions.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/concerns/foreman_openscap/host_extensions.rb b/app/models/concerns/foreman_openscap/host_extensions.rb index 2be26358..69388bd3 100644 --- a/app/models/concerns/foreman_openscap/host_extensions.rb +++ b/app/models/concerns/foreman_openscap/host_extensions.rb @@ -80,6 +80,8 @@ def self.prepended(base) property :policies_enc, String, desc: 'Returns JSON string containing policies for the host' property :policies_enc_raw, array_of: Hash, desc: 'Returns a list with key:value objects containing policies for the host' end + + base.smart_proxy_reference :self => [:openscap_proxy_id] end def inherited_attributes