diff options
author | Cole Robinson <crobinso@redhat.com> | 2022-08-22 10:15:46 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-08-22 10:16:19 -0400 |
commit | 1d64a678d31829051444e1bf29d86f800e13de39 (patch) | |
tree | b1474e29851b752bcea81f819cc040b1454eb1f6 /virtinst | |
parent | 999ccb85e3e4189386786256cdf70cf5238cf785 (diff) | |
download | virt-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.py | 2 |
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) |