lvsp_manager: handle no region case

This commit is contained in:
Luna 2019-03-03 18:41:27 -03:00
parent 9d853f0bda
commit 42cd0ae12c
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ class LVSPManager:
WHERE deprecated = false
""")
if not regions:
log.warning('no regions are setup')
return
for region in regions:
self.app.loop.create_task(
self._spawn_region(region)