- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Running terraform plan results in two Invalid index errors as a result of setting deploy_custom_roles=false in parameters.tfvars
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Versions
Mention any other details that might be useful
Same fix as #10; use length().
output "role_definition_ids" {
value = length(module.mod_custom_roles) > 0 ? module.mod_custom_roles[0].role_definition_ids : null
description = "List of Role Definition IDs."
}
output "role_definition_resource_ids" {
value = length(module.mod_custom_roles) > 0 ? module.mod_custom_roles[0].role_definition_resource_ids : null
description = "List of Azure Resource Manager IDs for the resources."
}
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Running
terraform plan
results in two Invalid index errors as a result of settingdeploy_custom_roles=false
inparameters.tfvars
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
Same fix as #10; use
length()
.