From a8437b47276844075a54d3f3a493d7896a66dde8 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Tue, 23 Jan 2024 09:45:18 -0500 Subject: [PATCH] Merge pull request #513 from agrare/add_zone_id_to_validation_dependencies (cherry picked from commit 4c1357d561c9878f6c5f809b5ca3d7e0048c77f5) --- .../manageiq/providers/kubernetes/container_manager.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/manageiq/providers/kubernetes/container_manager.rb b/app/models/manageiq/providers/kubernetes/container_manager.rb index 668ce01290..6668c3a95c 100644 --- a/app/models/manageiq/providers/kubernetes/container_manager.rb +++ b/app/models/manageiq/providers/kubernetes/container_manager.rb @@ -142,7 +142,7 @@ def self.params_for_create :name => 'authentications.default.valid', :skipSubmit => true, :isRequired => true, - :validationDependencies => %w[type], + :validationDependencies => %w[type zone_id], :fields => [ { :component => "select", @@ -243,7 +243,7 @@ def self.params_for_create :name => "authentications.prometheus.valid", :skipSubmit => true, :isRequired => true, - :validationDependencies => ['type', "metrics_selection", "authentications.bearer.auth_key"], + :validationDependencies => %w[type zone_id metrics_selection authentications.bearer.auth_key], :condition => { :when => "metrics_selection", :is => 'prometheus', @@ -365,7 +365,7 @@ def self.params_for_create :name => 'endpoints.virtualization.valid', :skipSubmit => true, :isRequired => true, - :validationDependencies => %w[type virtualization_selection], + :validationDependencies => %w[type zone_id virtualization_selection], :condition => { :when => 'virtualization_selection', :is => 'kubevirt',