Skip to content

Commit

Permalink
Add boot-media-type option to partition create.
Browse files Browse the repository at this point in the history
Otherwise the create fails with a KeyError.

Signed-off-by: Simon Spinner <[email protected]>
  • Loading branch information
simon-spinner authored and andy-maier committed Nov 3, 2023
1 parent 18d8cb8 commit 7b8d5ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zhmccli/_cmd_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down

0 comments on commit 7b8d5ed

Please sign in to comment.