From 8262b290635f77d1162c0d2385813dc7ba907d2e Mon Sep 17 00:00:00 2001 From: Parkreiner Date: Fri, 28 Jun 2024 17:34:36 +0000 Subject: [PATCH] wip: try reformatting try/catch --- windows-rdp/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows-rdp/main.tf b/windows-rdp/main.tf index eaac9cb..8e52088 100644 --- a/windows-rdp/main.tf +++ b/windows-rdp/main.tf @@ -66,7 +66,8 @@ resource "coder_script" "windows-rdp" { # Install-PackageProvider is required for AWS Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force - } catch { + } + catch { # If the first command failed, assume that we're on GCP and run # Install-Module only Install-Module -Name $moduleName -RequiredVersion $moduleVersion -Force