Skip to content

Commit

Permalink
Merge pull request #513 from agrare/add_zone_id_to_validation_depende…
Browse files Browse the repository at this point in the history
…ncies

(cherry picked from commit 4c1357d)
  • Loading branch information
Fryguy committed Jan 31, 2024
1 parent fcff0d3 commit a8437b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/manageiq/providers/kubernetes/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a8437b4

Please sign in to comment.