Skip to content

Creating a new inventory item instead of updating a previously created one (2 tags item) #12706

@Lozbik

Description

@Lozbik

NetBox version

v3.4.7

Python version

3.8

Steps to Reproduce

  1. Creating a json file for import in netbox with 2 tags
  2. Importing a file to inventory items
  3. Importing a file to inventory items again

The following files were used as the imported file:

  • similar files
  • with changed values

The json file used to import:

{
    "description": "1.818 TB",
    "device": "some device",
    "label": "SATA:4",
    "manufacturer": "WDC",
    "name": "some name",
    "part_id": "some part_id",
    "role": "disk",
    "serial": "some serial",
    "tags": "ugood,active"
}

Expected Behavior

In step 2, a new inventory item is created.
In step 3, the previously created inventory item is updated.

Observed Behavior

In step 2, a new inventory item is created
In step 3, a new inventory item is created with identical values

When only 1 tag is used - inventoryitem is updated
Also, if you update via the rest api, the inventory item is also updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions