-
Notifications
You must be signed in to change notification settings - Fork 91
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
Conversation
/acctest sha=e623f31c4b1aa4c7e33345a1eec710b379787fcb pkg=linode/region |
/acctest sha=e623f31c4b1aa4c7e33345a1eec710b379787fcb pkg=linode/regions |
} | ||
} | ||
|
||
func LoopThroughStringList(resName, path string, listValidateFunc ListAttrValidateFunc) resource.TestCheckFunc { |
There was a problem hiding this comment.
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
?
// 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 | ||
// } |
There was a problem hiding this comment.
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 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
📝 Description
Added a datasource for the
Regions List
api endpoint and updated the datasource for theRegion View
api endpoint to support new fields.