From e7a30952f878b624f610c80685f2f46bd6eb7b21 Mon Sep 17 00:00:00 2001 From: Nick LaMuro Date: Thu, 24 Jun 2021 16:05:47 -0500 Subject: [PATCH] [EmbeddedAnsible::ConfigurationScriptSource] virtual_attribute :verify_ssl Adds `verify_ssl` as a `virtual_attribute` so it can be queried properly by the API. --- .../automation_manager/configuration_script_source.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source.rb b/app/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source.rb index 94263c701f5..0b1dbab2323 100644 --- a/app/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source.rb +++ b/app/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source.rb @@ -1,6 +1,8 @@ class ManageIQ::Providers::EmbeddedAnsible::AutomationManager::ConfigurationScriptSource < ManageIQ::Providers::EmbeddedAutomationManager::ConfigurationScriptSource FRIENDLY_NAME = "Embedded Ansible Project".freeze + virtual_attribute :verify_ssl, :integer + validates :name, :presence => true # TODO: unique within region? validates :scm_type, :presence => true, :inclusion => { :in => %w[git] } validates :scm_branch, :presence => true