Skip to content

Commit

Permalink
Fix GraphQL scheme for OverriddenAnsibleVariablePresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorben-D committed May 8, 2024
1 parent 8c6be4f commit 500fe9e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 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 All @@ -16,4 +23,4 @@ def current_value
@override_resolver.resolve @ansible_variable
end
end
end
end

0 comments on commit 500fe9e

Please sign in to comment.