forked from cloudflare/terraform-provider-cloudflare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
account_member: Validate presence of accountID (cloudflare#283)
To use the `accountID` within the Terraform provider, the `org_id` attribute needs to be set. However, we have found a case[1] whereby omitting the value results in it becoming an empty string and gets passed through to the various account member functions and fails to build the URL correctly as the organisation/account ID is empty. To prevent this from happening, I've added additional validation in the functions that confirm the `accountID` that is getting passed, isn't an empty string prior to making the calls. This will resolve the issue upstream too. Closes terraform-providers/terraform-provider-cloudflare#262 [1]: terraform-providers/terraform-provider-cloudflare#262
- Loading branch information
1 parent
796cf82
commit b68229f
Showing
3 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters