summaryrefslogtreecommitdiff
path: root/virtinst
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-08-22 10:15:46 -0400
committerCole Robinson <crobinso@redhat.com>2022-08-22 10:16:19 -0400
commit1d64a678d31829051444e1bf29d86f800e13de39 (patch)
treeb1474e29851b752bcea81f819cc040b1454eb1f6 /virtinst
parent999ccb85e3e4189386786256cdf70cf5238cf785 (diff)
downloadvirt-manager-1d64a678d31829051444e1bf29d86f800e13de39.tar.gz
virt-install: Reuse cli.fail_conflicting
For the --unattended + --cloud-init conflict Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtinst')
-rw-r--r--virtinst/virtinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/virtinst/virtinstall.py b/virtinst/virtinstall.py
index 8260628d..8fcc8ce1 100644
--- a/virtinst/virtinstall.py
+++ b/virtinst/virtinstall.py
@@ -412,7 +412,7 @@ def build_installer(options, guest, installdata):
extra_args = [installdata.kernel_args]
if options.unattended and options.cloud_init:
- fail("--unattended and --cloud-init can not be specified together.")
+ cli.fail_conflicting("--unattended", "--cloud-init")
if options.unattended:
unattended_data = cli.parse_unattended(options.unattended)