From 1b2ed8b06ec3898e1ce905f56bb1be3c3a6f1243 Mon Sep 17 00:00:00 2001 From: Thorben Denzer Date: Wed, 8 May 2024 13:33:06 +0200 Subject: [PATCH] Fixes #37417 - OverriddenAnsibleVariablePresenter GraphQL scheme incorrect for hidden_value and override --- .../overriden_ansible_variable_presenter.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/graphql/presenters/overriden_ansible_variable_presenter.rb b/app/graphql/presenters/overriden_ansible_variable_presenter.rb index ae4003a76..49ea1f5f3 100644 --- a/app/graphql/presenters/overriden_ansible_variable_presenter.rb +++ b/app/graphql/presenters/overriden_ansible_variable_presenter.rb @@ -2,10 +2,17 @@ module Presenters class OverridenAnsibleVariablePresenter attr_reader :ansible_variable - delegate :id, :key, :description, :override?, - :parameter_type, :hidden_value?, :omit, :required, + delegate :id, :key, :description, + :parameter_type, :omit, :required, :validator_type, :validator_rule, :default_value, :ansible_role, :current_value, :to => :ansible_variable + def hidden_value + ansible_variable.hidden_value? + end + + def override + ansible_variable.override? + end def initialize(ansible_variable, override_resolver) @ansible_variable = ansible_variable