From d93a6bba200dde38a8db86d1bd696198be9537af Mon Sep 17 00:00:00 2001 From: hezijie Date: Sat, 14 Sep 2024 11:27:16 +0800 Subject: [PATCH] try to fix 201-vmss-packer-jumpbox --- test/e2e/quickstart_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/e2e/quickstart_test.go b/test/e2e/quickstart_test.go index a6459f7c..5bd81a35 100644 --- a/test/e2e/quickstart_test.go +++ b/test/e2e/quickstart_test.go @@ -115,20 +115,16 @@ func test201VmssPackerJumpbox(t *testing.T) { packerVars := map[string]string{ "image_resource_group_name": imageResourceGroupName, } - useMsi := false if clientId := os.Getenv("ARM_CLIENT_ID"); clientId != "" { packerVars["client_id"] = clientId } - if os.Getenv("MSI_ID") != "" { - useMsi = true - } if clientSecret := os.Getenv("ARM_CLIENT_SECRET"); clientSecret != "" { packerVars["client_secret"] = clientSecret } if subscriptionId := os.Getenv("ARM_SUBSCRIPTION_ID"); subscriptionId != "" { packerVars["subscription_id"] = subscriptionId } - if tenantId := os.Getenv("ARM_TENANT_ID"); !useMsi && tenantId != "" { + if tenantId := os.Getenv("ARM_TENANT_ID"); tenantId != "" { packerVars["tenant_id"] = tenantId } patches := gomonkey.ApplyFunc(shell.RunCommandAndGetOutputE, func(t terratest.TestingT, command shell.Command) (string, error) {