cli: Remove boot.order support check

Our support.py check is not exhaustive based on libvirt code checking.
Don't reject this case so users have a chance to make it work. The
support check is really more valuable in the UI where we can screw
things up easier.
This commit is contained in:
Cole Robinson 2019-03-06 13:15:48 -05:00
parent 908b8e8d7c
commit 887ee45cf6

View File

@ -20,7 +20,6 @@ import types
import libvirt
from virtinst import support
from virtcli import CLIConfig
from . import util, xmlapi
@ -2232,11 +2231,7 @@ def _add_device_address_args(cls):
def _add_device_boot_order_arg(cls):
def set_boot_order_cb(self, inst, val, virtarg):
val = int(val)
guest = self.guest
if not guest.conn.check_support(support.SUPPORT_CONN_DEVICE_BOOT_ORDER):
raise NotImplementedError('Device boot order isn\'t supported by the connection')
guest.reorder_boot_order(inst, val)
self.guest.reorder_boot_order(inst, val)
cls.set_boot_order_cb = set_boot_order_cb
cls.add_arg("boot.order", "boot_order", cb=cls.set_boot_order_cb)