{"record":{"id":"e51985cf61ca57c7","repo":"theforeman/foreman","slug":"partition-table-not-defined-for-hostgroup","errorCode":null,"errorMessage":"Partition table not defined for hostgroup","messagePattern":"Partition table not defined for hostgroup","errorType":"exception","errorClass":"Foreman::Renderer::Errors::RenderingError","httpStatus":null,"severity":"error","filePath":"app/models/hostgroup.rb","lineNumber":134,"sourceCode":"  # TODO: add a method that returns the valid os for a hostgroup\n\n  def hostgroup\n    self\n  end\n\n  def self.title_name\n    \"title\".freeze\n  end\n\n  def disk_layout_source\n    @disk_layout_source ||= if ptable.present?\n                              Foreman::Renderer::Source::String.new(name: ptable.name,\n                                content: ptable.layout.tr(\"\\r\", ''))\n                            end\n  end\n\n  def diskLayout\n    raise Foreman::Renderer::Errors::RenderingError, 'Partition table not defined for hostgroup' unless disk_layout_source\n    disk_layout_source.content\n  end\n\n  def inherited_lookup_value(key)\n    if key.path_elements.flatten.include?(\"hostgroup\") && Setting[\"matchers_inheritance\"]\n      ancestors.reverse_each do |hg|\n        if (v = LookupValue.find_by(:lookup_key_id => key.id, :id => hg.lookup_values))\n          return v.value, hg.to_label\n        end\n      end\n    end\n    [key.default_value, _(\"Default value\")]\n  end\n\n  def parent_params(include_source = false)\n    hash = {}\n    ids = ancestor_ids\n    # need to pull out the hostgroups to ensure they are sorted first,","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/models/hostgroup.rb#L116-L152","documentation":"Error \"Partition table not defined for hostgroup\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/models/hostgroup.rb:134 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":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}