def get_stats_from(args):
    stats = {}
    if args.recon == 'async-pendings':
        stats = swift_async()
    elif args.recon == 'md5':
        stats = swift_md5()
    elif args.recon == 'quarantine':
        stats = swift_quarantine()
    elif args.recon == 'replication':
        if args.ring not in {"account", "container", "object"}:
            maas_common.status_err('no ring provided to check')
        stats = swift_replication(args.ring)
    else:
        raise CommandNotRecognized('unrecognized command "{0}"'.format(
            args.recon))
    return stats
dataset/ETHPy150Open rcbops/rpc-openstack/maas/plugins/swift-recon.py/get_stats_from/original