Fix resource policies for regional disks in compute-vm module (#3689)
* fix resource policy for regional disks * remove unused providers from lockfile
This commit is contained in:
committed by
GitHub
parent
f9b94955a9
commit
1a2f84a5a7
@@ -184,10 +184,10 @@ resource "google_compute_region_disk_resource_policy_attachment" "attached" {
|
||||
disk = (
|
||||
each.value.source_type == "attach"
|
||||
? each.value.source
|
||||
: google_compute_disk.disks[each.value.disk_key].name
|
||||
: google_compute_region_disk.disks[each.value.disk_key].name
|
||||
)
|
||||
depends_on = [
|
||||
google_compute_instance.default,
|
||||
google_compute_disk.disks
|
||||
google_compute_region_disk.disks
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user