Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10300

find_file function returns path even if absolute path does not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Incomplete
    • Affects Version/s: PUP 6.12.0
    • Fix Version/s: None
    • Component/s: Functions
    • Labels:
    • Template:
      PUP Bug Template
    • Agent OS:
      CentOS 7
    • Master OS:
      CentOS 7
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.12
      Puppet Server Version: 6.7.2
      OS Name/Version: CentOS 7

      find_file function returns path even if absolute path does not exit

      Desired Behavior:

      The function should return undef/false if none of the given paths were found

      Actual Behavior:

      The function returns the path if file does not exist

      e.g. : find_file('/etc/testfile')

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            florianfa Florian Faltermeier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support