def list(self):
        """Gets a list of containers that store plans

        Gets a list of containers that contain metadata with the key of
        X-Container-Meta-Usage-Tripleo and value or 'plan'.

        :return: a list of strings containing plan names
        """
        plan_list = []
        for item in self.swiftclient.get_account()[1]:
            container = self.swiftclient.get_container(item['name'])[0]
            if constants.TRIPLEO_META_USAGE_KEY in container.keys():
                plan_list.append(item['name'])

        return plan_list
dataset/ETHPy150Open openstack/tripleo-common/tripleo_common/core/plan_storage.py/SwiftPlanStorageBackend.list/original