Rodrigo Bistolfi committed 3acd6d9

Fixed disk.has_partition_table

  • Participants
  • Parent commits cd788c3

Comments (0)

Files changed (1)


 #        assert self.disk._disk is not None, "We already have .disk attribute.  Do we have a partition table already?"
 #        assert self.disk.type is None, "Disk already has a partition table"
         self.disk._disk = parted.freshDisk(self.disk._device, "msdos")
-        self.disk._disk.has_partition_table = True
+        self.disk.has_partition_table = True
     def delete_all_partitions(self):
         """ Delete all partitions from drive