示例#1
0
    def list():  # pylint: disable=W0622
        """Delete bucket"""
        buckets = []
        for name in masterapi.cell_buckets(context.GLOBAL.zk.conn):
            bucket = masterapi.get_bucket(context.GLOBAL.zk.conn, name)
            bucket['name'] = name
            buckets.append(bucket)

        cli.out(formatter(buckets))
示例#2
0
 def list():  # pylint: disable=W0622
     """List top level bucket in the cell"""
     buckets = masterapi.cell_buckets(context.GLOBAL.zk.conn)
     for bucket in buckets:
         print(bucket)