We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8262b29 commit 16f96d3Copy full SHA for 16f96d3
windows-rdp/main.tf
@@ -63,8 +63,9 @@ resource "coder_script" "windows-rdp" {
63
# Install the module with the specified version for all users
64
# This requires administrator privileges
65
try {
66
- # Install-PackageProvider is required for AWS
67
- Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
+ # Install-PackageProvider is required for AWS. Need to set command to
+ # terminate on failure so that try/catch actually triggers
68
+ Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop
69
Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force
70
}
71
catch {
0 commit comments