Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zone_id to provider validationDependencies #513

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add zone_id to provider validationDependencies
agrare committed Jan 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit b27b6a2d1d2c00b33b90edca5919ed4ec20324ea
Original file line number Diff line number Diff line change
@@ -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',