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

Added linode_regions datasource and updated linode_region datasource #765

Merged
merged 4 commits into from
Feb 15, 2023

Conversation

ezilber-akamai
Copy link
Contributor

📝 Description

Added a datasource for the Regions List api endpoint and updated the datasource for the Region View api endpoint to support new fields.

@ezilber-akamai
Copy link
Contributor Author

/acctest sha=e623f31c4b1aa4c7e33345a1eec710b379787fcb pkg=linode/region

@ezilber-akamai
Copy link
Contributor Author

/acctest sha=e623f31c4b1aa4c7e33345a1eec710b379787fcb pkg=linode/regions

}
}

func LoopThroughStringList(resName, path string, listValidateFunc ListAttrValidateFunc) resource.TestCheckFunc {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about this naming a bit, maybe we could name it something like ValidateResourceAttrList?

Comment on lines +48 to +57
// func flattenRegionResolvers(data interface{}) map[string]interface{} {
// t := data.(linodego.RegionResolvers)

// result := make(map[string]interface{})

// result["ipv4"] = t.IPv4
// result["ipv6"] = t.IPv4

// return result
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can drop this 👍

Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@ezilber-akamai ezilber-akamai merged commit 76b55f4 into linode:dev Feb 15, 2023
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.

None yet

3 participants