Created
June 6, 2012 16:01
-
-
Save postwait/2882883 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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