Skip to content

Commit

Permalink
use plural
Browse files Browse the repository at this point in the history
  • Loading branch information
rucciva committed Nov 27, 2023
1 parent f55b3be commit a837005
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions huaweicloud/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ output "obs" {
output "rds" {
value = local.rds
}
output "rds_backup_strategy" {
value = local.rds_backup_strategy
output "rds_backup_strategies" {
value = local.rds_backup_strategies
}
output "rds_db" {
value = local.rds_db
output "rds_databases" {
value = local.rds_databases
}
output "rds_nodes" {
value = local.rds_nodes
}
output "rds_volume" {
value = local.rds_volume
output "rds_volumes" {
value = local.rds_volumes
}

output "secgroup" {
Expand Down
6 changes: 3 additions & 3 deletions huaweicloud/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ locals {
volume = null
})
]
rds_backup_strategy = flatten([
rds_backup_strategies = flatten([
for rds in data.huaweicloud_rds_instances.all.instances : [
for v in rds.backup_strategy :
merge(v, { rds_id = rds.id })
]
])
rds_db = flatten([
rds_databases = flatten([
for rds in data.huaweicloud_rds_instances.all.instances : [
for v in rds.db :
merge(v, { rds_id = rds.id })
Expand All @@ -41,7 +41,7 @@ locals {
merge(v, { rds_id = rds.id })
]
])
rds_volume = flatten([
rds_volumes = flatten([
for rds in data.huaweicloud_rds_instances.all.instances : [
for v in rds.volume :
merge(v, { rds_id = rds.id })
Expand Down

0 comments on commit a837005

Please sign in to comment.