def uri(self, host):
        if not self.conf:
            self.conf = maglica.config.load()

        if not hasattr(self.conf, "libvirt"):
            return "remote://%s/" % host

        libvirt = self.conf.libvirt
        return "%s+%s://%s/%s" % (
            libvirt["driver"], libvirt["transport"], host, libvirt["path"]
        )
dataset/ETHPy150Open mizzy/maglica/maglica/virt.py/Virt.uri/original