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
4 5 6 7 8 9 |
# File 'lib/puppet/indirector/resource/validator.rb', line 4 def validate_key(request) type, title = request.key.split('/', 2) unless type.casecmp(request.instance.type).zero? and title == request.instance.title raise Puppet::Indirector::ValidationError, _("Resource instance does not match request key") end end |