misc: ignore missing roles during provisionning (#44525)
This commit is contained in:
parent
2b562bcb1e
commit
96bd4aa855
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue