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

binary_file() file not found: error message unclear

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.9.0
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Puppet Developer Experience
    • Story Points:
      1
    • Sprint:
      PDS 2016-11-02, PDS 2016-11-30
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      the binary_file built-in function previously had an unclear error message when a specified file was not found.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      error message clarity; covered by unit tests

      Description

      [root@veba8457upz4cbq ~]# puppet apply -e '$urlsafe = Binary(binary_file("motd/README.md")) notify{ "$urlsafe": }'
      Error: Evaluation Error: Error while evaluating a Function Call, binary_file(): The given file '' does not exist  at line 1:19 on node veba8457upz4cbq.delivery.puppetlabs.net
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              erict Eric Thompson
              QA Contact:
              Eric Thompson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support