Fix issue causing stale reservations after loading a config

This commit is contained in:
nucleogenic 2022-09-19 14:16:34 +01:00
parent fb8f306005
commit dd40d7156a
No known key found for this signature in database
GPG Key ID: 04A5E4E319C4271D

View File

@ -521,6 +521,8 @@ class FileCmds:
# introduce more sophisticated format detection logic here.
if isinstance(config, dict):
self.ractl.detach_all()
for scsi_id in range(0, 8):
RESERVATIONS[scsi_id] = ""
ids_to_reserve = []
for item in config["reserved_ids"]:
ids_to_reserve.append(item["id"])