From c6f353a10de5ae34c2a97e8dee8057640bd66ad5 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 32fc3de..3fdf5ea 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