Skip to content

Commit 194dd9f

Browse files
committed
use data source
1 parent 78b5330 commit 194dd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openstack/infrastructure.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ locals {
143143
pv_key => {
144144
for name, specs in pv_values:
145145
name => merge(
146-
{ glob = try("/dev/disk/by-id/*${substr(openstack_blockstorage_volume_v3.existing_volumes["${x}-${pv_key}-${name}"].id, 0, 20)}", "/dev/disk/by-id/*${substr(openstack_blockstorage_volume_v3.volumes["${x}-${pv_key}-${name}"].id, 0, 20)}") },
146+
{ glob = try("/dev/disk/by-id/*${substr(data.openstack_blockstorage_volume_v3.existing_volumes["${x}-${pv_key}-${name}"].id, 0, 20)}", "/dev/disk/by-id/*${substr(openstack_blockstorage_volume_v3.volumes["${x}-${pv_key}-${name}"].id, 0, 20)}") },
147147
specs,
148148
)
149149
} if contains(values.tags, pv_key)

0 commit comments

Comments
 (0)