Skip to content

Commit 6c20516

Browse files
bgkleinxingwu1
authored andcommitted
CLI Extension Bug when executing normal operations (#101)
* update minor CLI extension issue * Fix Job as well
1 parent 338c439 commit 6c20516

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

batch-cli-extensions/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Release History
44
===============
55

6+
3.0.2 (2019-02-26)
7+
------------------
8+
9+
* Fix bug when using extension to create a pool through normal CLI behavior
10+
611
3.0.1 (2019-02-04)
712
------------------
813

batch-cli-extensions/azext_batch/custom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def create_pool(client, template=None, parameters=None, json_file=None, id=None,
5656
if not id:
5757
raise ValueError('Please supply template, json_file, or id')
5858

59-
pool = PoolAddParameter(id, vm_size=vm_size)
59+
pool = PoolAddParameter(id=id, vm_size=vm_size)
6060
if auto_scale_formula:
6161
pool.auto_scale_formula = auto_scale_formula
6262
pool.enable_auto_scale = True
@@ -153,7 +153,7 @@ def create_job(client, template=None, parameters=None, json_file=None, id=None,
153153
raise ValueError('Please supply template, json_file, or id')
154154

155155
pool = PoolInformation(pool_id=pool_id)
156-
job = JobAddParameter(id, pool, priority=priority)
156+
job = JobAddParameter(id=id, pool_info=pool, priority=priority)
157157
job.uses_task_dependencies = uses_task_dependencies
158158
if job_max_wall_clock_time is not None or job_max_task_retry_count is not None:
159159
constraints = JobConstraints(max_wall_clock_time=job_max_wall_clock_time,

batch-cli-extensions/azext_batch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
VERSION = "3.0.1"
6+
VERSION = "3.0.2"

0 commit comments

Comments
 (0)