From f8e1af6f779b609fd1630241d80685e1dc263800 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Wed, 10 Jul 2024 16:25:29 +0200 Subject: [PATCH] Refs #36999 - Drop CPU mode option for libvirt This parameter is dropped from Foreman 3.12. --- doc/host_create.md | 1 - lib/hammer_cli_foreman/compute_resource/libvirt.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/doc/host_create.md b/doc/host_create.md index a24be6816..31ffe16de 100644 --- a/doc/host_create.md +++ b/doc/host_create.md @@ -194,7 +194,6 @@ Available keys for `--compute-attributes`: ``` cpus # number of CPUs memory # string, amount of memory, value in bytes -cpu_mode # possible values: default, host-model, host-passthrough start # Must be a 1 or 0, whether to start the machine or not ``` diff --git a/lib/hammer_cli_foreman/compute_resource/libvirt.rb b/lib/hammer_cli_foreman/compute_resource/libvirt.rb index 47f8fd979..bf04a86e4 100644 --- a/lib/hammer_cli_foreman/compute_resource/libvirt.rb +++ b/lib/hammer_cli_foreman/compute_resource/libvirt.rb @@ -9,7 +9,6 @@ def compute_attributes [ ['cpus', _('Number of CPUs'), { bold: true }], ['memory', _('String, amount of memory, value in bytes'), { bold: true }], - ['cpu_mode', _('Possible values: %{modes}') % { modes: 'default, host-model, host-passthrough' }], ['boot_order', _('Device names to specify the boot order')] ] end