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

Required custom field with default value #423

Open
Azmodeszer opened this issue Nov 12, 2024 · 0 comments
Open

Required custom field with default value #423

Azmodeszer opened this issue Nov 12, 2024 · 0 comments

Comments

@Azmodeszer
Copy link

Azmodeszer commented Nov 12, 2024

NetBox: v4.1.6
Sync: v1.7.0
vSphere: v8.0.3.00000

The sync is trying to create new VMs, but running into an error:

2024-11-12 06:03:57,949 - ERROR: NetBox returned: POST /api/virtualization/virtual-machines/ Bad Request
2024-11-12 06:03:57,949 - ERROR: NetBox returned body: {'__all__': ["Missing required custom field 'Icinga2_Monitoring_VM'."]}

And yes, this is a required field for VMs. However, it has a default value set, so I'm not sure why it's complaining about a missing field? Does the sync not work with default values?

I've set the field back to optional for now and the error disappears, but would of course prefer having it automatically set for VMs.

@Azmodeszer Azmodeszer changed the title Error because of required custom field with default value Required custom field with default value Nov 12, 2024
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

No branches or pull requests

1 participant