-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable google_dns_managed_zone to accept network id for two attributes (
#3602) * enable google_dns_managed_zone to accept network id for two attributes * updated doc to include supporting id along with fully qualified url * enable google_dns_managed_zone to accept network id for two attributes Co-authored-by: Edward Sun <sunedward@google.com>
- Loading branch information
1 parent
3184c4c
commit 7de85ba
Showing
4 changed files
with
28 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
func expand<%= prefix -%><%= titlelize_property(property) -%>(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { | ||
if v == nil || v.(string) == "" { | ||
return "", nil | ||
} else if strings.HasPrefix(v.(string), "https://") { | ||
return v, nil | ||
} | ||
url, err := replaceVars(d, config, "{{ComputeBasePath}}" + v.(string)) | ||
if err != nil { | ||
return "", err | ||
} | ||
return ConvertSelfLinkToV1(url), nil | ||
} |
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