Skip to content

Commit c2e9abc

Browse files
authored
Fix importing repository objects twice (#6607)
1 parent 601f4de commit c2e9abc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

backend/infrahub/git/integrator.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,14 @@ async def import_objects_from_files(
188188
try:
189189
if config_file:
190190
await self.import_schema_files(branch_name=infrahub_branch_name, commit=commit, config_file=config_file) # type: ignore[misc]
191-
192191
await self.import_all_graphql_query(
193192
branch_name=infrahub_branch_name, commit=commit, config_file=config_file
194193
) # type: ignore[misc]
195-
196-
await self.import_objects(
197-
branch_name=infrahub_branch_name,
198-
commit=commit,
199-
config_file=config_file,
200-
) # type: ignore[misc]
201194
await self.import_objects(
202195
branch_name=infrahub_branch_name,
203196
commit=commit,
204197
config_file=config_file,
205198
) # type: ignore[misc]
206-
207199
await self.import_all_python_files( # type: ignore[call-overload]
208200
branch_name=infrahub_branch_name, commit=commit, config_file=config_file
209201
) # type: ignore[misc]

0 commit comments

Comments
 (0)