Skip to content

Commit

Permalink
Make sure we wait for catalog to be properly synced before we try to …
Browse files Browse the repository at this point in the history
…list apps which can be migrated
  • Loading branch information
sonicaj committed Jul 30, 2024
1 parent 7c1bf90 commit e51676f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def list_backups(self, job, kubernetes_pool):
if not os.path.exists(backup_base_dir):
return backup_config | {'error': f'Unable to locate {backup_base_dir!r} backups directory'}

self.middleware.call_sync('catalog.sync')
self.middleware.call_sync('catalog.sync').wait_sync()

backups = backup_config['backups']
snapshots = self.middleware.call_sync(
Expand Down

0 comments on commit e51676f

Please sign in to comment.