Skip to content

Commit

Permalink
Revert "Merge pull request #46 from permitio/rk/fix-delete-scope"
Browse files Browse the repository at this point in the history
This reverts commit b306f6f, reversing
changes made to 8f3721c.
  • Loading branch information
roekatz committed Mar 19, 2023
1 parent b306f6f commit fe87ae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/opal-server/opal_server/scopes/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ async def delete_scope(
logger.error(f"Unauthorized to delete scope: {repr(ex)}")
raise

await scopes.delete(scope_id)

from opal_server.worker import delete_scope

delete_scope.delay(scope_id)
Expand Down
2 changes: 0 additions & 2 deletions packages/opal-server/opal_server/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ async def delete_scope(self, scope_id: str):
)
shutil.rmtree(scope_dir, ignore_errors=True)

await scopes.delete(scope_id)

async def sync_scopes(self, only_poll_updates=False):
with tracer.trace("worker.sync_scopes"):
scopes = await self._scopes.all()
Expand Down

0 comments on commit fe87ae6

Please sign in to comment.