def execute(self, ns, devices=None):
        cls = ns.LMI_DiskPartitionConfigurationCapabilities
        for (device, table) in partition.get_partition_tables(ns, devices):
            LOG().debug("Examining %s", device.Name)
            largest_size = partition.get_largest_partition_size(ns, device)
            largest_size = size2str(largest_size,
                    self.app.config.human_friendly)

            if table.PartitionStyle == cls.PartitionStyleValues.MBR:
                table_type = "MS-DOS"
            else:
                table_type = cls.PartitionStyleValues.value_name(
                        table.PartitionStyle)

            yield (device.Name, table_type, largest_size)
Implementation of 'partition-table list' command.
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/storage/lmi/scripts/storage/cmd/partition_table.py/PartitionTableList.execute