Exception: Chef::Exceptions::NoSuchResourceType

Inherits:
NameError
  • Object
show all
Defined in:
lib/chef/exceptions.rb

Overview

Can't find a Resource of this type that is valid on this platform.

Instance Method Summary collapse

Constructor Details

#initialize(short_name, node) ⇒ NoSuchResourceType


135
136
137
# File 'lib/chef/exceptions.rb', line 135

def initialize(short_name, node)
  super "Cannot find a resource for #{short_name} on #{node[:platform]} version #{node[:platform_version]} with target_mode? #{Chef::Config.target_mode?}"
end