Skip to content

Commit

Permalink
Update install_vm documentation with information about unr distros.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggbecker committed Jan 27, 2025
1 parent d8b75fa commit ebec638
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/install_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ def path_from_tests(path):
def parse_args():
import textwrap
osinfo_epilog = textwrap.dedent(r"""
--osinfo details: 'rhel8-unknown' is used by default when '--distro' has any of
the RHEL available selected. Run 'virt-install --osinfo list'
to get a list of available options
""")
--osinfo details: 'For unreleased distros, these are the following
default data used as input {}.
""".format(UNRELEASED_DISTROS_AND_OSINFO))
parser = argparse.ArgumentParser(
formatter_class=argparse.RawTextHelpFormatter,
# formatter_class=argparse.ArgumentDefaultsHelpFormatter,
epilog=osinfo_epilog,
)

Expand Down Expand Up @@ -342,8 +340,8 @@ def get_virt_install_command(data):
command.append(f'--osinfo={data.osinfo}')
else:
if data.distro in UNRELEASED_DISTROS_AND_OSINFO.keys():
command.append("--osinfo={}".format(UNRELEASED_DISTROS_AND_OSINFO.get(data.distro, "rhel9-unknown")))

command.append("--osinfo={}".format(
UNRELEASED_DISTROS_AND_OSINFO.get(data.distro, "rhel9-unknown")))

command.extend(join_extented_opt("--boot", ",", boot_opts))
command.extend(join_extented_opt("--extra-args", " ", extra_args_opts))
Expand Down

0 comments on commit ebec638

Please sign in to comment.