Skip to content

Commit b51a1e5

Browse files
committed
Small bugfixes to upgrade script
1 parent 1a0602d commit b51a1e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

helpers/migrate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
{
3232
"resource_type": "google_compute_shared_vpc_host_project",
3333
"name": "shared_vpc_host",
34-
"module": ".module.vpc"
34+
"module": ".module.vpc",
35+
"new_plural": False
3536
},
3637
{
3738
"resource_type": "google_compute_subnetwork",
@@ -280,7 +281,7 @@ def read_state(self):
280281
def resource_value(self, resource, key):
281282
# Find the resource in the state
282283
state_resource_list = [r for r in self.state["resources"] if
283-
r["module"] == resource.module and
284+
r.get("module", "none") == resource.module and
284285
r["type"] == resource.resource_type and
285286
r["name"] == resource.name]
286287

0 commit comments

Comments
 (0)