misc: ignore missing roles during provisionning (#44525)

This commit is contained in:
Frédéric Péters 2020-06-27 14:26:21 +02:00
parent 2b562bcb1e
commit 96bd4aa855
1 changed files with 2 additions and 2 deletions

View File

@ -143,8 +143,8 @@ class CmdHoboNotify(Command):
role.remove_self()
# All roles have been sent
if full and action == 'provision':
for role in Role.select():
if role.uuid not in uuids:
for role in Role.select(ignore_errors=True):
if role and role.uuid not in uuids:
role.remove_self()
@classmethod