{"record":{"id":"ebb799832691c80c","repo":"puppetlabs/puppet","slug":"invalid-node-name-host","errorCode":null,"errorMessage":"Invalid node name %{host}","messagePattern":"Invalid node name %(.+?)","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/reports/store.rb","lineNumber":67,"sourceCode":"  def self.destroy(host)\n    validate_host(host)\n\n    dir = File.join(Puppet[:reportdir], host)\n\n    if Puppet::FileSystem.exist?(dir)\n      Dir.entries(dir).each do |file|\n        next if ['.', '..'].include?(file)\n\n        file = File.join(dir, file)\n        Puppet::FileSystem.unlink(file) if File.file?(file)\n      end\n      Dir.rmdir(dir)\n    end\n  end\n\n  def validate_host(host)\n    if host =~ Regexp.union(/[#{SEPARATOR}]/, /\\A\\.\\.?\\Z/)\n      raise ArgumentError, _(\"Invalid node name %{host}\") % { host: host.inspect }\n    end\n  end\n  module_function :validate_host\nend\n","sourceCodeStart":49,"sourceCodeEnd":72,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/reports/store.rb#L49-L72","documentation":"Error \"Invalid node name %{host}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/reports/store.rb:67 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"}