Skip to content
Snippets Groups Projects
Verified Commit bee4bf1b authored by Eunhak Lee's avatar Eunhak Lee
Browse files

fix: disk type 이 None 일 수 있음

parent d4511eeb
No related branches found
No related tags found
No related merge requests found
Pipeline #10669 passed
......@@ -142,7 +142,7 @@ def func():
for part_type, parts in _parts.items(): # 부품 유형별 iterate
for part in parts: # 부품별 iterat
if part_type == "DISK":
disk_part_type = part.pop("type", "not_set").upper()
disk_part_type = (part.pop("type", None) or "not_set").upper()
if disk_part_type not in ("SSD", "HDD",):
print("[WARNING] not supported disk type", disk_part_type, file=sys.stderr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment