Skip to content

Commit

Permalink
Fix 'close_transactions' worker input
Browse files Browse the repository at this point in the history
- Fix handling of null or empty input in the 'close_transactions'
  worker by setting default value to empty list.
  • Loading branch information
jaro0149 committed Jun 24, 2024
1 parent c7aac0c commit 65289f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion uniconfig/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@
- Fix Device Discovery RPC based on new OpenAPI model.

# 2.3.4
- Device Discovery RPC workaround caused by choice-nodes in UniConfig Yang models.
- Device Discovery RPC workaround caused by choice-nodes in UniConfig Yang models.

# 2.3.5
- Fix handling of null or empty input in the 'close_transactions' worker.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ class WorkerDefinition(TaskDefinition):

class WorkerInput(TaskInput):
uniconfig_transactions: list[UniconfigTransactionContext] = Field(
description="List of UniConfig transactions to be closed by this worker."
description="List of UniConfig transactions to be closed by this worker.",
default=[]
)

class WorkerOutput(TaskOutput):
Expand Down
2 changes: 1 addition & 1 deletion uniconfig/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ packages = [{ include = "frinx_worker" }]
name = "frinx-uniconfig-worker"
description = "Conductor worker for Frinx Uniconfig"
authors = ["Jozef Volak <[email protected]>"]
version = "2.3.4"
version = "2.3.5"
readme = ["README.md", "CHANGELOG.md", "RELEASE.md"]
keywords = ["frinx-machine", "uniconfig", "worker"]
license = "Apache 2.0"
Expand Down

0 comments on commit 65289f7

Please sign in to comment.