Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Adds visibility to failures in provisioning env #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kyleburnsdev
Copy link
Contributor

  • Writes errors in provisioning script to STDERR instead of STDOUT to enhance visibility
  • Detects failure of SQL database import
  • Final output message has been updated to provide a count of failed environments (if any)

Write-Output "All resources are deployed. Enjoy the OpenHack!";
}
else {
Write-Error "$failedEnvironments environments failed either provisioning or validation. Please check output for more details"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One thing that I considered here was to in the error path add exit 1 to provide an opportunity for automated execution to see the execution as unsuccessful and bubble to relevant reporting. I think that's an appropriate change, but couldn't be sure of ramifications to existing processes, so I didn't include it in this round.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant