From ea8bd2dc46020dc71924047abb2d5d99b6babf53 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Fri, 29 Mar 2024 12:48:00 -0400 Subject: [PATCH] Add prototype for seeding builtin workflows --- .../workflows/automation_manager/configuration_script_source.rb | 2 ++ config/settings.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/models/manageiq/providers/workflows/automation_manager/configuration_script_source.rb b/app/models/manageiq/providers/workflows/automation_manager/configuration_script_source.rb index 1b71da8..f4268df 100644 --- a/app/models/manageiq/providers/workflows/automation_manager/configuration_script_source.rb +++ b/app/models/manageiq/providers/workflows/automation_manager/configuration_script_source.rb @@ -14,6 +14,8 @@ def self.display_name(number = 1) end def self.seed + return unless Settings.prototype.ems_workflows.seed_builtin_workflows + manager = ManageIQ::Providers::Workflows::AutomationManager.in_my_region.first return if manager.nil? diff --git a/config/settings.yml b/config/settings.yml index 42937cd..bf16bf3 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -33,4 +33,5 @@ :ems_refresh_worker_workflows: {} :prototype: :ems_workflows: + :seed_builtin_workflows: false :enabled: true