Skip to content

Commit

Permalink
[gcp][fix]: Duplicate checksum error in sql service (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 authored Aug 8, 2024
1 parent 59e53cc commit 00b9581
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/gcp/fix_plugin_gcp/resources/sqladmin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from datetime import datetime
from typing import ClassVar, Dict, Optional, List, Type
from typing import Any, ClassVar, Dict, Optional, List, Tuple, Type

from attr import define, field

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

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


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

0 comments on commit 00b9581

Please sign in to comment.