Skip to content

Commit 00b9581

Browse files
authored
[gcp][fix]: Duplicate checksum error in sql service (#2166)
1 parent 59e53cc commit 00b9581

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/gcp/fix_plugin_gcp/resources/sqladmin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22
from datetime import datetime
3-
from typing import ClassVar, Dict, Optional, List, Type
3+
from typing import Any, ClassVar, Dict, Optional, List, Tuple, Type
44

55
from attr import define, field
66

@@ -1104,5 +1104,8 @@ def connect_in_graph(self, builder: GraphBuilder, source: Json) -> None:
11041104
if self.instance:
11051105
builder.add_edge(self, reverse=True, clazz=GcpSqlDatabaseInstance)
11061106

1107+
def _keys(self) -> Tuple[Any, ...]:
1108+
return tuple(list(super()._keys()) + [self.instance])
1109+
11071110

11081111
resources: List[Type[GcpResource]] = [GcpSqlDatabaseInstance]

0 commit comments

Comments
 (0)