From 7b8d5ed6958b457c7ca18feb188920290d750203 Mon Sep 17 00:00:00 2001 From: Simon Spinner Date: Fri, 3 Nov 2023 09:37:53 +0100 Subject: [PATCH] Add boot-media-type option to partition create. Otherwise the create fails with a KeyError. Signed-off-by: Simon Spinner --- zhmccli/_cmd_partition.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zhmccli/_cmd_partition.py b/zhmccli/_cmd_partition.py index e098d453..e6ece943 100644 --- a/zhmccli/_cmd_partition.py +++ b/zhmccli/_cmd_partition.py @@ -367,6 +367,10 @@ def partition_dump(cmd_ctx, cpc, partition, **options): @click.option('--boot-media-file', type=str, required=False, help='Boot from removable media on the HMC: The path to the ' 'image file on the HMC.') +@click.option('--boot-media-type', type=click.Choice(['usb', 'cdrom']), + required=False, + help='Boot from removable media on the HMC: The type of media. ' + 'Must be specified if --boot-media-file is specified.') @click.option('--boot-timeout', required=False, metavar='INTEGER', type=click.IntRange(MIN_BOOT_TIMEOUT, MAX_BOOT_TIMEOUT), help='The time in seconds that is waited before an ongoing boot '