From 500fe9ed875b4091711fa0e8c052a788608c1dfb Mon Sep 17 00:00:00 2001 From: Thorben Denzer Date: Wed, 8 May 2024 13:33:06 +0200 Subject: [PATCH] Fix GraphQL scheme for OverriddenAnsibleVariablePresenter --- .../overriden_ansible_variable_presenter.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/graphql/presenters/overriden_ansible_variable_presenter.rb b/app/graphql/presenters/overriden_ansible_variable_presenter.rb index ae4003a76..a8453c68d 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 @@ -16,4 +23,4 @@ def current_value @override_resolver.resolve @ansible_variable end end -end +end \ No newline at end of file