Example #1
0
    def start(self):
        images = self.get_images_list()

        table = PrettyTable(["Name", "Version", "Pusher", "Size", "BuildTime"])
        table.padding_width = 1

        for section in images:
            image = images[section]

            table.add_row([
                image.get("name", ""),
                image.get("version", "1.0"),
                image.get("author", "anonymous"),
                image.get("size", 0),
                image.get("buildtime", "")
            ])

        self.logger.info(table)