Skip to content

Commit

Permalink
Merge pull request #274 from zhmcclient/juergen/load-parameter_fix
Browse files Browse the repository at this point in the history
Fixes #273: Fix when providing 'load-parameter' option
  • Loading branch information
leopoldjuergen authored May 17, 2017
2 parents d9c6e24 + 86ae4f9 commit 4cd5882
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zhmccli/_cmd_lpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,13 @@ def cmd_lpar_load(cmd_ctx, cpc_name, lpar_name, load_address, options):
client = zhmcclient.Client(cmd_ctx.session)
lpar = find_lpar(client, cpc_name, lpar_name)

options = original_options(options)
load_parameter = ""
if options['load_parameter']:
load_parameter = options['load_parameter']

try:
lpar.load(load_address, wait_for_completion=True, **options)
lpar.load(load_address, load_parameter=load_parameter,
wait_for_completion=True)
except zhmcclient.Error as exc:
raise click.ClickException("%s: %s" % (exc.__class__.__name__, exc))

Expand Down

0 comments on commit 4cd5882

Please sign in to comment.