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

Facter returns TypeError on non-existent indexes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 4.0.52, FACT 4.1.0, FACT 4.1.1
    • Fix Version/s: FACT 4.2.0
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      Facter does not crash if a nonexistent index is queried.

      Show
      Facter does not crash if a nonexistent index is queried.
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      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.
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support