Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit bdfc9a0

Browse files
JozefielJozef Volak
andauthored
[uniconfig] Add missing default parameters for optional inputs (#26)
Co-authored-by: Jozef Volak <[email protected]>
1 parent bee9f6b commit bdfc9a0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

uniconfig/python/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# 1.0.0
22
- Upgrade pydantic version to v2
3+
4+
# 1.0.1
5+
- Add missing default value for optional inputs

uniconfig/python/frinx_worker/uniconfig/structured_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class WorkerDefinition(TaskDefinition):
3333

3434
class WorkerInput(TaskInput):
3535
node_id: str
36-
uri: Optional[str]
36+
uri: Optional[str] = None
3737
topology_id: str = 'uniconfig'
3838
transaction_id: Optional[str] = None
3939
uniconfig_server_id: Optional[str] = None
@@ -82,7 +82,7 @@ class WorkerDefinition(TaskDefinition):
8282

8383
class WorkerInput(TaskInput):
8484
node_id: str
85-
uri: Optional[str]
85+
uri: Optional[str] = None
8686
template: DictAny
8787
method: str = 'PUT'
8888
params: Optional[DictAny] = {}

uniconfig/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ packages = [{ include = "frinx_worker" }]
2020
name = "frinx-uniconfig-worker"
2121
description = "Conductor worker for Frinx Uniconfig"
2222
authors = ["Jozef Volak <[email protected]>"]
23-
version = "1.0.0"
23+
version = "1.0.1"
2424
readme = ["README.md", "CHANGELOG.md", "RELEASE.md"]
2525
keywords = ["frinx-machine", "uniconfig", "worker"]
2626
license = "Apache 2.0"

0 commit comments

Comments
 (0)