Branch: refs/heads/2.1.0
Home:
https://github.com/Checkmk/checkmk
Commit: 51b689ae2e2430ab575ba7e80466bded70ac81eb
https://github.com/Checkmk/checkmk/commit/51b689ae2e2430ab575ba7e80466bded7…
Author: Gav <gavin.mcguigan(a)checkmk.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
A .werks/16099
M cmk/gui/fields/base.py
Log Message:
-----------
16099 FIX create_host: creating a host with a custom attribute now returns expected
attributes
This werk addresses an issue when creating a host with custom attributes. For
example, when you added a new tag to a tag group and then created a host with
that tag group: tag value, the created host would have this new attribute but
it wouldn't have any other attributes.
So sending this in your request, after creating the new tag 'tag1',
C+:
{
"folder": "~",
"host_name": "api_created_host2",
"attributes": {
"ipaddress": "127.0.0.1",
"tag_agent": "no-agent",
"tag_snmp_ds": "no-snmp",
"tag_networking": "tag1"
}
}
C-:
before this would create a host with the only the tag networking attribute
and ignore all others, like so
C+:
{
...
"attributes" {
"tag_networking": "tag1"
}
C-:
Now, we return all the expected attributes.
SUP-14816
Change-Id: Ic91628f382837006173cb2582dd19da3afca1acb