Module: Puppet::Resource::Validator
- Included in:
- Ral, StoreConfigs
- Defined in:
- lib/puppet/indirector/resource/validator.rb
Instance Method Summary collapse
Instance Method Details
#validate_key(request) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/puppet/indirector/resource/validator.rb', line 2 def validate_key(request) type, title = request.key.split('/', 2) unless type.downcase == request.instance.type.downcase and title == request.instance.title raise Puppet::Indirector::ValidationError, _("Resource instance does not match request key") end end |