Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Fix partition table type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gholms committed Nov 22, 2016
1 parent ef593bc commit b345061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion euca2ools/commands/bundle/bundlevolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def _get_partition_table_type(device, debug=False):
parted = subprocess.Popen(['parted', '-m', '-s', device, 'print'],
stdout=subprocess.PIPE, stderr=stderr_dest)
stdout, _ = parted.communicate()
for line in stdout:
for line in stdout.splitlines():
if line.startswith('/dev/'):
# /dev/sda:500GB:scsi:512:512:msdos:ATA WDC WD5003ABYX-1;
line_bits = line.split(':')
Expand Down

0 comments on commit b345061

Please sign in to comment.