Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-3030

Facter returns TypeError on non-existent indexes

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • FACT 4.0.52, FACT 4.1.0, FACT 4.1.1
    • FACT 4.2.0
    • None
    • Hide

      Facter does not crash if a nonexistent index is queried.

      Show
      Facter does not crash if a nonexistent index is queried.
    • Night's Watch
    • Needs Assessment
    • Bug Fix
    • Previously, when accessing array values by indexes, Facter would raise a TypeError if a non-existent index is searched. This is now fixed so that Facter outputs nothing in this case.
    • Needs Assessment

    Description

      Facter allow accessing array values by indexes, but if an nonexistent index is searched, it will raise TypeError.

      Eg. 

      facter processors.models.1999

      Attachments

        Activity

          People

            Unassigned Unassigned
            gheorghe.popescu Gheorghe Popescu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support