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

Exit code is always 0

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: FACT 3.4.1
    • Fix Version/s: FACT 4.0.0
    • Component/s: None
    • Labels:
    • QA Risk Assessment:
      Needs Assessment

      Description

      If facter is run against a non-existant fact, it still returns success. One might assume it should return a non-zero exit code:

      #Ask for a fact that doesn't exist
      root@paul:~ # facter fluffy.bunny

      #Check the exit status
      root@paul:~ # echo $?
      0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paul.anderson Paul Anderson
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support