Skip to content

Conversation

iceman91176
Copy link

This provides controlling which custom attributes will be added as a label. Only allowed customAttributes will be added as a label.
Allowed customAttributes can be configured as a YAML-List in the config fileor as a comma-seaparted string for ENV-Vatiables.

For backwards compatibility all customAttributes will be returned if there is no configuration for Allowed customAttributes

Signed-off-by: Carsten Buchberger [email protected]

This provides a filter for allowed customAttributes.
Only allowed customAttributes will be added as a label

Signed-off-by: Carsten Buchberger <[email protected]>
@iceman91176
Copy link
Author

Example for config.yml

default:
    vsphere_host: "some-vcenter.local"
    vsphere_user: "****@vsphere.local"
    vsphere_password: "***"
    ignore_ssl: True
    specs_size: 5000
    fetch_custom_attributes: True
    custom_attributes_allowed:
    - configurationId
    fetch_tags: False
    fetch_alarms: True
    collect_only:
        vms: False
        vmguests: False
        datastores: True
        hosts: True
        snapshots: True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant