Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using only allowed customAttributes #342

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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 c.buchberger@witcom.de

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

Signed-off-by: Carsten Buchberger <c.buchberger@witcom.de>
@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

Signed-off-by: Carsten Buchberger <c.buchberger@witcom.de>
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