Skip to content

Commit 2e57b78

Browse files
authored
B #7345: Check if a host is a match for VM when analyzing local storage (#3913)
Signed-off-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
1 parent de46992 commit 2e57b78

File tree

1 file changed

+2
-0
lines changed
  • src/schedm_mad/remotes/one_drs/lib/mapper

1 file changed

+2
-0
lines changed

src/schedm_mad/remotes/one_drs/lib/mapper/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ def find_storage_matches(
183183
# considered.
184184
host_caps = {cap.id: cap for cap in host_capacities}
185185
for host_id, disk_ids in req.host_dstore_ids.items():
186+
if host_id not in host_caps:
187+
continue
186188
disk_caps = host_caps[host_id].disks
187189
disk_matches: list[int] = []
188190
for disk_id in disk_ids:

0 commit comments

Comments
 (0)