Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1053

PDK validate should print validator output on parse_output failure

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.6.1
    • Component/s: None
    • Template:
    • Release Notes:
      New Feature
    • Release Notes Summary:
      The `pdk validate` command will now display the output from underlying tools when it encounters an unexpected error.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Currently, if PDK::Validate::* fails to parse the output of the validator (for example, when the underlying validator exits with an unhandled error), then we should print the output from the validator so that the user at least knows what went wrong.

      This has been brought up in a https://github.com/puppetlabs/pdk/issues/468 where puppet-lint threw a parser error and printed out a debug report which was then swallowed by `pdk validate` as unparsable JSON with no indication of the cause of the failure even in the debug output.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tim.sharpe Tim Sharpe
              Reporter:
              tim.sharpe Tim Sharpe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support