Skip to content

Can't update the device type via inventory.json #1935

@anonymosh

Description

@anonymosh

Describe the bug
We are trying to set the device type in the inventory.json of thin-edge.io alongside other fragments. E.g.
{"type": "PumpAgent", "name": "inventoryname", "someothefragment":{}}

Expected behavior
The expected behaviour is that the type behaves here like all the other fragments on the device, i.e. that the type info from the inventory.json is used for the ManagedObject in Cumulocity.

Observed behavior
The type is ignored, instead it looks like the tedge config for device.type is always used instead.
As the inventory.json is more specific, I would have expected the entry there to take precedence

Screenshots
image

Environment (please complete the following information):

  • Ubuntu 22.04
  • thin-edge.io version [e.g. 0.10.0]

Thanks,
Mario

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions