Always more cleanup

This commit is contained in:
Alan Mason 2017-12-01 12:02:05 -08:00
parent 90c4189942
commit cd3f3ed8d3
2 changed files with 5 additions and 8 deletions

View file

@ -197,7 +197,7 @@ def get_table_type(disk):
elif REGEX_DISK_RAW.search(output):
part_type = 'RAW'
else:
part_type = 'Unknown
part_type = 'Unknown'
return part_type
@ -319,7 +319,7 @@ def scan_disks():
# Done
return disks
def select_disk(title='Which disk?', disks):
def select_disk(title='Which disk?', disks=[]):
"""Select a disk from the attached disks"""
# Build menu
disk_options = []

View file

@ -150,10 +150,7 @@ def format_mbr(disk):
def mount_windows_share():
"""Mount the Windows images share unless labeled as already mounted."""
if WINDOWS_SERVER['Mounted']:
# Blindly skip if we mounted earlier
continue
if not WINDOWS_SERVER['Mounted']:
mount_network_share(WINDOWS_SERVER)
def select_windows_version():