summaryrefslogtreecommitdiff
path: root/virtinst/connection.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2018-10-06 19:31:01 -0400
committerCole Robinson <crobinso@redhat.com>2018-10-06 19:45:51 -0400
commit7eaf036acffeaa1a5d6081eaaf6528ac3fbbc880 (patch)
tree5a8c8e96649fe402c6b47c7a982ffd24e9a0a5d8 /virtinst/connection.py
parent019a33e975e89cc5ca07ffce8287ce29d35b6ab8 (diff)
downloadvirt-manager-7eaf036acffeaa1a5d6081eaaf6528ac3fbbc880.tar.gz
virtinst: Remove stable_defaults concept
This switch says: if we detect a rhel host, use special version checks that match rhel backports. This pattern sucks. The way forward is to have libvirt advertise the bits that are supported, through domcapabilities. Then virt-manager/virtinst can react as appropriate.
Diffstat (limited to 'virtinst/connection.py')
-rw-r--r--virtinst/connection.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/virtinst/connection.py b/virtinst/connection.py
index da2bdb7e..3be8592f 100644
--- a/virtinst/connection.py
+++ b/virtinst/connection.py
@@ -9,8 +9,6 @@ import weakref
import libvirt
-from virtcli import CLIConfig
-
from . import pollhelpers
from . import support
from . import util
@@ -323,29 +321,6 @@ class VirtinstConnection(object):
logging.debug("Error calling getVersion", exc_info=True)
return self._conn_version
- def stable_defaults(self, emulator=None, force=False):
- """
- :param force: Just check if we are running on RHEL, regardless of
- whether stable defaults are requested by the build. This is needed
- to ensure we don't enable VM devices that are compiled out on
- RHEL, like vmvga
- """
- if not CLIConfig.stable_defaults and not force:
- return False
-
- if not self.is_qemu():
- return False
-
- if emulator:
- return str(emulator).startswith("/usr/libexec")
-
- for guest in self.caps.guests:
- for dom in guest.domains:
- emulator = dom.emulator or guest.emulator
- if emulator.startswith("/usr/libexec"):
- return True
- return False
-
###################
# Public URI bits #