Skip to content

[BUG] dcd module: dcd_config.connector.creation_rules.host_attributes should not be null by default #995

@relrod

Description

@relrod

Verify first that your issue is not already reported here.
Where possible also test if the latest release and main branch are affected too. Complete all sections as described!

Describe the bug

    - name: Create DCD connection
      checkmk.general.dcd:
        dcd_config:
          dcd_id: homelab-kube
          title: kube.home.elrod.me
          connector:
            connector_type: piggyback
            creation_rules:
              - folder_path: /homelab
                delete_hosts: false
            restrict_source_hosts:
              - kube.home.elrod.me

leads to:

[ERROR]: Task failed: Module failed: 400 - Bad request: Parameter or validation failure Details: b'{"title": "Bad Request", "status": 400, "detail": "These fields have problems: connector", "fields": {"connector": {"creation_rules": {"0": {"host_attributes": ["Field may not be null."]}}}}}'

But if I add host_attributes: {} to the creation rule, it works.

Component Name

Write the short name of the module or plugin below, use your best guess if unsure. Keeping the below syntax helps us match the issues to labels.

Component Name: dcd

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmodule:dcdThis affects the dcd module.upstreamThere is something upstream blocking this

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions