try to fix 201-vmss-packer-jumpbox
This commit is contained in:
parent
8e98c2eb21
commit
d93a6bba20
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user