diff --git a/plugins/gcp/fix_plugin_gcp/resources/sqladmin.py b/plugins/gcp/fix_plugin_gcp/resources/sqladmin.py index 483f3ca0d2..e283347cb9 100644 --- a/plugins/gcp/fix_plugin_gcp/resources/sqladmin.py +++ b/plugins/gcp/fix_plugin_gcp/resources/sqladmin.py @@ -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 @@ -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]