Sha256: e14bfa43243de119db2af2f71ee162e99618cc8005d87aaaf17ca6eb6e4609ec

Contents?: true

Size: 316 Bytes

Versions: 262

Compression:

Stored size: 316 Bytes

Contents

module Puppet::Resource::Validator
  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
end

Version data entries

262 entries across 262 versions & 2 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/indirector/resource/validator.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/indirector/resource/validator.rb
puppet-4.10.12 lib/puppet/indirector/resource/validator.rb
puppet-4.10.12-x86-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.12-x64-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.12-universal-darwin lib/puppet/indirector/resource/validator.rb
puppet-4.10.11 lib/puppet/indirector/resource/validator.rb
puppet-4.10.11-x86-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.11-x64-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.11-universal-darwin lib/puppet/indirector/resource/validator.rb
puppet-4.10.10 lib/puppet/indirector/resource/validator.rb
puppet-4.10.10-x86-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.10-x64-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.10-universal-darwin lib/puppet/indirector/resource/validator.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/indirector/resource/validator.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/indirector/resource/validator.rb
puppet-4.10.9 lib/puppet/indirector/resource/validator.rb
puppet-4.10.9-x86-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.9-x64-mingw32 lib/puppet/indirector/resource/validator.rb
puppet-4.10.9-universal-darwin lib/puppet/indirector/resource/validator.rb