

def repo(args):
    cd_conf = getattr(args, 'cd_conf', None)
    for hostname in args.host:
        LOG.debug('Detecting platform for host %s ...', hostname)
        distro = hosts.get(hostname, username=args.username)
        rlogger = logging.getLogger(hostname)
        LOG.info('Distro info: %s %s %s', distro.name, distro.release, distro.codename)
        if args.remove:
            distro.packager.remove_repo(args.repo_name)
        else:
            install_repo(distro, args, cd_conf, rlogger)

dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/repo.py repo/original