Skip to content

Commit

Permalink
It is convenient for Pulumi if this conflict is bidirectional. (#2413)
Browse files Browse the repository at this point in the history
Merged PR #2413.
  • Loading branch information
nat-henderson authored and modular-magician committed Oct 8, 2019
1 parent 6fde5d4 commit afb887f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ func resourceComputeInstanceTemplate() *schema.Resource {
},

"name_prefix": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
ConflictsWith: []string{"name"},
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
// https://cloud.google.com/compute/docs/reference/latest/instanceTemplates#resource
// uuid is 26 characters, limit the prefix to 37.
Expand Down

0 comments on commit afb887f

Please sign in to comment.