Revert granular SCHD detection on the web ui side, since there are a plethora of hard drive image file endings out there

This commit is contained in:
Daniel Markstedt 2021-09-19 21:48:49 -07:00
parent 8454021f6b
commit c6ef573d3b

View File

@ -309,11 +309,12 @@ def attach():
kwargs = {"image": file_name}
# Validate image type by file name suffix
# Supplementing file ending based image type detection on the backend side
if file_name.lower().endswith(CDROM_FILE_SUFFIX):
kwargs["device_type"] = "SCCD"
elif file_name.lower().endswith(REMOVABLE_FILE_SUFFIX):
kwargs["device_type"] = "SCRM"
elif file_name.lower().endswith(HARDDRIVE_FILE_SUFFIX):
else:
kwargs["device_type"] = "SCHD"
# Attempt to load the device properties file: