Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zzaakiirr committed Oct 16, 2024
1 parent e36c11c commit 080f3d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/terraform_config/policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Policy < Base
org policy quota secret serviceaccount task user volumeset workload
].freeze

GVC_REQUIERD_TARGET_KINDS = %w[identity workload volumeset].freeze
GVC_REQUIRED_TARGET_KINDS = %w[identity workload volumeset].freeze

attr_reader :name, :description, :tags, :target_kind, :gvc, :target, :target_links, :target_query, :bindings

Expand Down Expand Up @@ -66,7 +66,7 @@ def validate_target_kind!
end

def validate_gvc!
return unless GVC_REQUIERD_TARGET_KINDS.include?(target_kind.to_s) && gvc.nil?
return unless GVC_REQUIRED_TARGET_KINDS.include?(target_kind.to_s) && gvc.nil?

raise ArgumentError, "`gvc` is required for `#{target_kind}` target kind"
end
Expand Down

0 comments on commit 080f3d6

Please sign in to comment.