Skip to content

Should $ErrorActionPreference='Stop' by default for inline powershell provisoner ?  #6449

@conradjones

Description

@conradjones

Question ?

Should $ErrorActionPreference='Stop' by default for the inline powershell provisoner?

Currently if any command fails the packer build "succeeds", i've been adding $ErrorActionPreference='Stop'
as the first line of every inline powershell provisoner i've setup and it's a bit tedious and easily missed. Causing a build to look like it succeeds.

Quite happy to submit a PR, just wanted to gauge appetite

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions