Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELETE #27

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -644,10 +644,10 @@ def _get_zone_id(zone_name: str) -> str | None:
def execute(self, worker_input: WorkerInput) -> TaskResult[WorkerOutput]:

self.add_device.input.name = worker_input.device_name
self.add_device.input.zone_id = worker_input.zone_id
self.add_device.input.zone_id = self._get_zone_id(worker_input.zone_id)
self.add_device.input.service_state = worker_input.service_state
self.add_device.input.device_size = worker_input.device_size
self.add_device.input.mount_parameters = str(worker_input.mount_parameters).replace("'", '\\"')
self.add_device.input.mount_parameters = str(worker_input.mount_parameters).replace("'", '\"')

if worker_input.label_ids:
self.add_device.input.label_ids = worker_input.label_ids
Expand Down
6 changes: 5 additions & 1 deletion uniconfig/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
- Upgrade pydantic version to v2

# 1.0.1
- Add missing default value for optional inputs
- Add missing default value for optional inputs

# 1.0.2
- Translate zone_name from the frontend to zone_id by using the _get_zone_id method when initializing the input
- Correction of mount_parameters retyping
2 changes: 1 addition & 1 deletion uniconfig/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packages = [{ include = "frinx_worker" }]
name = "frinx-uniconfig-worker"
description = "Conductor worker for Frinx Uniconfig"
authors = ["Jozef Volak <[email protected]>"]
version = "1.0.1"
version = "1.0.2"
readme = ["README.md", "CHANGELOG.md", "RELEASE.md"]
keywords = ["frinx-machine", "uniconfig", "worker"]
license = "Apache 2.0"
Expand Down