Skip to content

Instantly share code, notes, and snippets.

@postwait
Created June 6, 2012 16:01
Show Gist options
  • Select an option

  • Save postwait/2882883 to your computer and use it in GitHub Desktop.

Select an option

Save postwait/2882883 to your computer and use it in GitHub Desktop.
diff --git a/usr/src/cmd/text-install/disk_selection.py b/usr/src/cmd/text-install/disk_selection.py
index 9b40281..f98d330 100644
--- a/usr/src/cmd/text-install/disk_selection.py
+++ b/usr/src/cmd/text-install/disk_selection.py
@@ -344,6 +344,8 @@ class DiskScreen(BaseScreen):
len_mftr = DiskScreen.DISK_HEADERS[4][0] - 1
for disk in self.disks:
disk_text_fields = []
+ if disk.disk_prop is None or disk.disk_prop.dev_type is None:
+ continue
type_field = disk.disk_prop.dev_type[:len_type]
type_field = ljust_columns(type_field, len_type)
disk_text_fields.append(type_field)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment