mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
ee9f93074b
This was raised here: https://www.redhat.com/archives/virt-tools-list/2019-June/msg00117.html Quoting from that: """ virt-convert takes an ovf/ova or vmx file and spits out libvirt XML. It started as a code drop a long time ago that could translate back and forth between vmx, ovf, and virt-image, a long dead appliance format. In 2014 I converted it to do vmx -> libvirt and ovf -> libvirt which was a CLI breaking change, but I never heard a peep of a complaint. It doesn't seem to do a particularly thorough job at its intended goal, I've seen 2-3 bug reports in the past 5 years and generally it doesn't seem to have any users. Let's kill it. If anyone has the desire to keep it alive it could live as a separate project that's a wrapper around virt-install but there's no compelling reason to keep it in virt-manager.git IMO """ Nothing has changed since then, so here is the removal. Signed-off-by: Cole Robinson <crobinso@redhat.com>
62 lines
1.5 KiB
Python
62 lines
1.5 KiB
Python
# Copyright (C) 2013, 2014 Red Hat, Inc.
|
|
#
|
|
# This work is licensed under the GNU GPLv2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
import atexit
|
|
import imp
|
|
import os
|
|
|
|
# Need to do this before any tests or virtinst import
|
|
os.environ["VIRTINST_TEST_SUITE"] = "1"
|
|
# Need to do this before we import argcomplete
|
|
os.environ.pop("_ARC_DEBUG", None)
|
|
|
|
# pylint: disable=wrong-import-position
|
|
from virtinst import buildconfig
|
|
from virtinst import log, reset_logging
|
|
# This sets all the cli bits back to their defaults
|
|
imp.reload(buildconfig)
|
|
|
|
from tests import utils
|
|
|
|
virtinstall = None
|
|
virtclone = None
|
|
virtxml = None
|
|
|
|
|
|
def setup_logging():
|
|
import logging
|
|
reset_logging()
|
|
|
|
fmt = "%(levelname)-8s %(message)s"
|
|
streamHandler = logging.StreamHandler()
|
|
streamHandler.setFormatter(logging.Formatter(fmt))
|
|
if utils.clistate.debug:
|
|
streamHandler.setLevel(logging.DEBUG)
|
|
else:
|
|
streamHandler.setLevel(logging.ERROR)
|
|
log.addHandler(streamHandler)
|
|
log.setLevel(logging.DEBUG)
|
|
|
|
|
|
def setup_cli_imports():
|
|
_cleanup_imports = []
|
|
|
|
def _cleanup_imports_cb():
|
|
for f in _cleanup_imports:
|
|
if os.path.exists(f):
|
|
os.unlink(f)
|
|
|
|
def _import(name, path):
|
|
_cleanup_imports.append(path + "c")
|
|
return imp.load_source(name, path)
|
|
|
|
global virtinstall
|
|
global virtclone
|
|
global virtxml
|
|
atexit.register(_cleanup_imports_cb)
|
|
virtinstall = _import("virtinstall", "virt-install")
|
|
virtclone = _import("virtclone", "virt-clone")
|
|
virtxml = _import("virtxml", "virt-xml")
|