Skip to content

Commit

Permalink
Fixed missing 'CPC' arg in 'zhmc cpc upgrade' command
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Oct 17, 2023
1 parent 9a15860 commit 0e064c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Released: not yet

**Bug fixes:**

* Fixed missing 'CPC' argument in "zhmc cpc upgrade" command. (issue #487).

**Enhancements:**

**Cleanup:**
Expand Down
6 changes: 3 additions & 3 deletions zhmccli/_cmd_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ def list_api_features(cmd_ctx, **options):
@click.option('--accept-firmware', '-a', type=bool, required=False,
default=True,
help="Boolean indicating to accept the previous bundle level "
"before installing the new level.")
@click.option('--timeout', '-T', type=int, required=False, default=600,
"before installing the new level. Default: true")
@click.option('--timeout', '-T', type=int, required=False, default=1200,
help='Timeout (in seconds) when waiting for the HMC upgrade '
'to be complete. Default: 600.')
'to be complete. Default: 1200.')
@click.pass_obj
def console_upgrade(cmd_ctx, **options):
"""
Expand Down
7 changes: 4 additions & 3 deletions zhmccli/_cmd_cpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,16 +523,17 @@ def cpc_list_api_features(cmd_ctx, cpc, **options):


@cpc_group.command('upgrade', options_metavar=COMMAND_OPTIONS_METAVAR)
@click.argument('CPC', type=str, metavar='CPC')
@click.option('--bundle-level', '-b', type=str, required=True,
help="Name of the bundle to be installed on the SE "
"(e.g. 'S71').")
@click.option('--accept-firmware', '-a', type=bool, required=False,
default=True,
help="Boolean indicating to accept the previous bundle level "
"before installing the new level.")
@click.option('--timeout', '-T', type=int, required=False, default=600,
"before installing the new level. Default: true")
@click.option('--timeout', '-T', type=int, required=False, default=1200,
help='Timeout (in seconds) when waiting for the SE upgrade '
'to be complete. Default: 600.')
'to be complete. Default: 1200.')
@click.pass_obj
def cpc_upgrade(cmd_ctx, cpc, **options):
"""
Expand Down

0 comments on commit 0e064c6

Please sign in to comment.