Skip to content

Commit

Permalink
[inventory] Adjust inventory worker (#45)
Browse files Browse the repository at this point in the history
* [inventory] Adjust inventory worker
The inventory worker needs some values to be empty (e.g. mount
parameters) so failed devices in the workflow can be stored as well.
* Bump patch version and add CHANGELOG.md entry
* [uniconfig] Newer models
* Update tag for uniconfig API
* Bump version

Signed-off-by: Jakub Boguščiak <[email protected]>
  • Loading branch information
jbogusciak authored Jun 7, 2024
1 parent 0188aad commit 8c33439
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 183 deletions.
4 changes: 4 additions & 0 deletions inventory/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
# 1.2.0
- Added 'fail_on_missing_label' boolean parameter to the INVENTORY_get_labels_id worker input.
- Controls the behavior of the worker when a label is not found.

# 1.2.1
- Updated inventory AddDevice and UpdateDevice settings, so they can also contain empty values.
Useful when adding devices that have failed during the workflow.
4 changes: 2 additions & 2 deletions inventory/python/frinx_worker/inventory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class InventoryAddDevice(WorkerImpl):
)

class ExecutionProperties(TaskExecutionProperties):
exclude_empty_inputs: bool = True
exclude_empty_inputs: bool = False
transform_string_to_json_valid: bool = True

class WorkerDefinition(TaskDefinition):
Expand Down Expand Up @@ -870,7 +870,7 @@ class InventoryUpdateDevice(WorkerImpl):
)

class ExecutionProperties(TaskExecutionProperties):
exclude_empty_inputs: bool = True
exclude_empty_inputs: bool = False
transform_string_to_json_valid: bool = True

class WorkerDefinition(TaskDefinition):
Expand Down
2 changes: 1 addition & 1 deletion inventory/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ packages = [{ include = "frinx_worker" }]
name = "frinx-inventory-worker"
description = "Conductor worker for Frinx Device Inventory"
authors = ["Jozef Volak <[email protected]>"]
version = "1.2.0"
version = "1.2.1"
readme = ["README.md", "CHANGELOG.md", "RELEASE.md"]
keywords = ["frinx-machine", "device inventory", "worker"]
license = "Apache 2.0"
Expand Down
3 changes: 3 additions & 0 deletions uniconfig/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@

# 2.3.1
- Fixed closed_transactions workflow output type (it must be string).

# 2.3.2
- Update Inventory properties and bump Uniconfig API.
Loading

0 comments on commit 8c33439

Please sign in to comment.