From 5875019b2d4f6d89562ac0ad98785f4786264ae9 Mon Sep 17 00:00:00 2001 From: Jose <91138553+Pompilos@users.noreply.github.com> Date: Sun, 10 Nov 2024 22:00:17 +0100 Subject: [PATCH] Update installertreemedia.py Removing duplicated verb "be" --- tests/test_cli.py | 2 +- virtinst/install/installertreemedia.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index bbcd03211..a635601f4 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1059,7 +1059,7 @@ c.add_invalid("--connect test:///default --name foo --ram 64 --disk none --sdl - c.add_invalid("--paravirt --import --print-xml 2", grep="does not have XML step 2") # PV Import install, no second XML step c.add_invalid("--paravirt --import --print-xml 7", grep="Unknown XML step request '7'") # Invalid --print-xml arg c.add_invalid("--location kernel=foo,initrd=bar", grep="location kernel/initrd may only be specified with a location URL/path") -c.add_invalid("--location http://example.com,kernel=foo", grep="location kernel/initrd must be be specified as a pair") +c.add_invalid("--location http://example.com,kernel=foo", grep="location kernel/initrd must be specified as a pair") c.add_valid("--pxe --os-variant generic --os-type linux", grep="--os-type is deprecated") c.add_invalid("--os-variant solaris10 --unattended", grep="not support unattended") diff --git a/virtinst/install/installertreemedia.py b/virtinst/install/installertreemedia.py index 0151f1497..8b208bf50 100644 --- a/virtinst/install/installertreemedia.py +++ b/virtinst/install/installertreemedia.py @@ -116,7 +116,7 @@ class InstallerTreeMedia(object): raise ValueError(_("location kernel/initrd may only " "be specified with a location URL/path")) if not (location_kernel and location_initrd): - raise ValueError(_("location kernel/initrd must be " + raise ValueError(_("location kernel/initrd must " "be specified as a pair")) self._cached_fetcher = None