mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Remove over-validation by google_cloudfunctions_function on project ids (#2780)
<!-- This change is generated by MagicModules. --> /cc @rileykarson
This commit is contained in:
parent
00f87a3da2
commit
3c5529cfd6
|
@ -52,11 +52,7 @@ func (s *cloudFunctionId) terraformId() string {
|
|||
}
|
||||
|
||||
func parseCloudFunctionId(id string, config *Config) (*cloudFunctionId, error) {
|
||||
parts := strings.Split(id, "/")
|
||||
|
||||
cloudFuncIdRegex := regexp.MustCompile("^([a-z0-9-]+)/([a-z0-9-])+/([a-zA-Z0-9_-]{1,63})$")
|
||||
|
||||
if cloudFuncIdRegex.MatchString(id) {
|
||||
if parts := strings.Split(id, "/"); len(parts) == 3 {
|
||||
return &cloudFunctionId{
|
||||
Project: parts[0],
|
||||
Region: parts[1],
|
||||
|
|
Loading…
Reference in New Issue
Block a user