Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-3588) Update documentation for change in MODULES-3399 #138

Conversation

glennsarti
Copy link
Contributor

The behavior about $LASTEXITCODE was modified in MODULES-3399 however there
was no documentation to demonstrate the change. This PR modifies the README
with the new behavior and example code.

[ci skip]

}
~~~

The `exec['test']` resource will always fail because the exit code from the the external file `C:\fail.ps1` is `1`. This behavior may have unintended consequences if you are combining mulitple external files.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiple

The behavior about $LASTEXITCODE was modified in MODULES-3399 however there
was no documentation to demonstrate the change.  This commit modifies the README
with the new behavior and example code.

[ci skip]
@glennsarti glennsarti force-pushed the ticket/master/MODULES-3588-doc-script-exit-codes branch from f25defd to 67c8419 Compare August 26, 2016 20:45
@Iristyle
Copy link
Contributor

Iristyle commented Sep 7, 2016

I think we might want to clarify a bit more / add further detail in a subsequent iteration, but this is probably fine for now. (For instance, it might help to talk about the difference between cmdlets and external executables / the call operator - and how cmdlets don't have a $LASTEXITCODE but that external execs will)

I'm going to merge and docs review can take another pass to make sure its clear enough.

@Iristyle Iristyle changed the base branch from master to stable September 7, 2016 15:27
@Iristyle
Copy link
Contributor

Iristyle commented Sep 7, 2016

Changed branch to stable, so that this can be merged up.

@Iristyle Iristyle merged commit 0ef83d7 into puppetlabs:stable Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants