Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Tool exit status not being analysed to return correct status #66

Open
sanfrancrisko opened this issue Dec 13, 2021 · 0 comments
Open

Tool exit status not being analysed to return correct status #66

sanfrancrisko opened this issue Dec 13, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@sanfrancrisko
Copy link

Steps to reproduce:

  • Create a directory with the following file and file contents:
# invalid.pp
class invalid {}
  • Run prm exec puppetlabs/puppet-lint --codedir /path/to/above/directory -toolArgs=invalid.pp
  • Observe the exiting error message:
ERR Error executing tool puppetlabs/puppet-lint: Tool exited with code: 1

Due to the fact that puppet-lint returns a non-zero exit code, we will treat this as an error in the execution of the tool, rather than the tool running and exiting with a non-zero exit code, to relay information back to the user. A subtle difference.

We will exit here, rather than continuing on to inspect and classify the exit status here

@sanfrancrisko sanfrancrisko added the bug Something isn't working label Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant