From 1d64a678d31829051444e1bf29d86f800e13de39 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 22 Aug 2022 10:15:46 -0400 Subject: virt-install: Reuse cli.fail_conflicting For the --unattended + --cloud-init conflict Signed-off-by: Cole Robinson --- virtinst/virtinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'virtinst') 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) -- cgit v1.2.1