Skip to content

Commit f68e3eb

Browse files
ignoring VPC subnets (#70) (#74)
1 parent a6ce146 commit f68e3eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

calm/dsl/db/table_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ def sync(cls):
200200
for entity in res.get("entities", []):
201201
name = entity["status"]["name"]
202202
uuid = entity["metadata"]["uuid"]
203-
cluster_ref = entity["status"]["cluster_reference"]
203+
cluster_ref = entity["status"].get("cluster_reference", {})
204+
if not cluster_ref:
205+
continue
204206
cluster_name = cluster_ref.get("name", "")
205207
cluster_uuid = cluster_ref.get("uuid", "")
206208

0 commit comments

Comments
 (0)