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

Optional custom fields #1

Merged

Conversation

c0deaddict
Copy link

When using the terraform-phpipam-provider we get these errors:

Error: Error from API (200): No custom fields defined

  on network.tf line 17, in data "phpipam_subnet" "ams_public":
  17: data "phpipam_subnet" "ams_public" {

Looking at the problem I found that this SDK assumes that custom fields are defined in phpIPAM. Without any custom fields defined it throws an error.

This PR sets that right, it will suppress the error if no custom fields are defined. It is a bit of an awkward way to do this but I couldn't find a better way.

@pavel-z1 pavel-z1 merged commit 3a7bd29 into pavel-z1:master May 16, 2020
@pavel-z1
Copy link
Owner

Hi @c0deaddict , thank you.
PR is merged.

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.

2 participants