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

forwarding_urls in page rules are lists #79

Merged
merged 2 commits into from
Jul 9, 2018
Merged

forwarding_urls in page rules are lists #79

merged 2 commits into from
Jul 9, 2018

Conversation

MrTravisB
Copy link
Contributor

Currently when importing a page rule with a forwarding_url, the following error is given.

    2018-07-03T14:43:23.366-0700 [DEBUG] plugin.terraform-provider-cloudflare_v1.0.0_x4: 2018/07/03 14:43:23 [WARN] Error setting actions in page rule "XXXXXXXXXXXXXX": actions.0.forwarding_url: '': source data must be an array or slice, got map

This fixes that. forwarding_url is defined as a list and there needs to be set to a list.

@jacobbednarz
Copy link
Member

@MrTravisB Nice find. Is it possible to add (or expand on) a test case to prevent this from regressing?

@MrTravisB
Copy link
Contributor Author

@jacobbednarz done

@patryk
Copy link
Contributor

patryk commented Jul 9, 2018

Indeed, good catch. Thanks Travis and thanks Jacob for taking time in reviewing it.

@patryk patryk merged commit e591b22 into cloudflare:master Jul 9, 2018
@MrTravisB MrTravisB deleted the forwarding-urls-are-lists branch July 9, 2018 17:33
@jacobbednarz
Copy link
Member

appreciate it @MrTravisB 🙇

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.

3 participants