{"record":{"id":"186ac00459ed96b0","repo":"puppetlabs/puppet","slug":"invalid-entry-at-error-location-file-text-186ac0","errorCode":null,"errorMessage":"Invalid entry at %{error_location}: %{file_text}","messagePattern":"Invalid entry at %(.+?): %(.+?)","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/util/network_device/config.rb","lineNumber":72,"sourceCode":"            name = ::Regexp.last_match(1)\n            name.chomp!\n            if devices.include?(name)\n              file_error_location = Puppet::Util::Errors.error_location(nil, file_line_count)\n              device_error_location = Puppet::Util::Errors.error_location(nil, device.line)\n              raise Puppet::Error, _(\"Duplicate device found at %{file_error_location}, already found at %{device_error_location}\") %\n                                   { file_error_location: file_error_location, device_error_location: device_error_location }\n            end\n            device = OpenStruct.new\n            device.name = name\n            device.line = file_line_count\n            device.options = { :debug => false }\n            Puppet.debug \"found device: #{device.name} at #{device.line}\"\n            devices[name] = device\n          when /^\\s*(type|url|debug)(\\s+(.+)\\s*)*$/\n            parse_directive(device, ::Regexp.last_match(1), ::Regexp.last_match(3), file_line_count)\n          else\n            error_location_str = Puppet::Util::Errors.error_location(nil, file_line_count)\n            raise Puppet::Error, _(\"Invalid entry at %{error_location}: %{file_text}\") %\n                                 { error_location: error_location_str, file_text: line }\n          end\n        end\n      end\n    rescue Errno::EACCES\n      Puppet.err _(\"Configuration error: Cannot read %{file}; cannot serve\") % { file: @file }\n      # raise Puppet::Error, \"Cannot read #{@config}\"\n    rescue Errno::ENOENT\n      Puppet.err _(\"Configuration error: '%{file}' does not exit; cannot serve\") % { file: @file }\n    end\n\n    @devices = devices\n  end\n\n  def parse_directive(device, var, value, count)\n    case var\n    when \"type\"\n      device.provider = value","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/util/network_device/config.rb#L54-L90","documentation":"Error \"Invalid entry at %{error_location}: %{file_text}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/util/network_device/config.rb:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}