Skip to content

Commit

Permalink
Fixes #37417 - OverriddenAnsibleVariablePresenter GraphQL scheme inco…
Browse files Browse the repository at this point in the history
…rrect for hidden_value and override
  • Loading branch information
Thorben-D committed May 8, 2024
1 parent 8c6be4f commit 1b2ed8b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/graphql/presenters/overriden_ansible_variable_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b2ed8b

Please sign in to comment.