@utils.arg('--bay', required=True,
           metavar='<bay>', help="UUID or Name of Bay")
def do_rc_list(cs, args):
    bay = cs.bays.get(args.bay)
    if bay.status not in ['CREATE_COMPLETE', 'UPDATE_COMPLETE']:
        raise exceptions.InvalidAttribute(
            'Bay status for %s is: %s. We cannot list '
            'replication controllers in bay until the bay status '
            'is CREATE_COMPLETE or UPDATE_COMPLETE.' %
            (args.bay, bay.status))

    rcs = cs.rcs.list(args.bay)
    columns = ('uuid', 'name', 'bay_uuid')
    utils.print_list(rcs, columns,
                     {'versions': magnum_utils.print_list_field('versions')})
Print a list of registered replication controllers.
dataset/ETHPy150Open openstack/python-magnumclient/magnumclient/v1/replicationcontrollers_shell.py/do_rc_list