theforeman/foreman · error · Foreman::Exception

%s is not auditable

Error message

%s is not auditable

What it means

Error "%s is not auditable" thrown in theforeman/foreman.

Source

Thrown at app/services/foreman/renderer/scope/macros/base.rb:444

              array.map! { |str| CGI.escapeHTML(str) }
              # Replace all "\n" in the string with "\n<br>"
              array.map! { |str| str.gsub("\n", "\n<br>") }
              array.join.html_safe
            end
          end

          apipie :method, 'Returns previous revision of a record as tracked in the audit' do
            desc 'Returns the same object if there is no previous revision'
            required :record, ApplicationRecord, desc: 'Record to get previous revision for'
            returns ApplicationRecord
            raises error: Foreman::Exception, desc: 'when the provided record is not auditable'
            example 'previous_revision(host_with_new_name).name # => "previous-name"'
          end
          def previous_revision(record)
            record.revision(:previous)
          rescue NoMethodError => e
            Foreman::Logging.logger('templates').error(e)
            raise Foreman::Exception.new(_('%s is not auditable') % record.class)
          end

          apipie :method, 'Returns a short version of Foreman' do
            desc 'Returns a string representing the short version (X.Y) of Foreman'
            returns String
            example 'foreman_short_version # => "3.4"'
          end
          def foreman_short_version
            Foreman::Version.new.short
          end

          apipie :method, 'Returns a short version of Foreman as a product' do
            desc 'Returns a string representing the short version (X.Y) of Foreman as a product'
            returns String
            example 'product_short_version # => "3.4"'
          end
          def product_short_version
            Foreman::Version.new.short

View on GitHub (pinned to 6b05625475)

When it happens

Trigger: Thrown at app/services/foreman/renderer/scope/macros/base.rb:444 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23). Data as JSON: /api/errors/8a7320d78f20a114. Report an issue: GitHub.