Skip to content

Commit

Permalink
Add ConflictsWith Schema Relation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Udit committed Sep 1, 2020
1 parent 317e602 commit 980b39c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions github/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ func Provider() terraform.ResourceProvider {
Description: descriptions["token"],
},
"owner": {
Type: schema.TypeString,
Optional: true,
DefaultFunc: OwnerOrOrgEnvDefaultFunc,
Description: descriptions["owner"],
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("GITHUB_OWNER", nil),
Description: descriptions["owner"],
ConflictsWith: []string{"organization"},
},
"organization": {
Type: schema.TypeString,
Optional: true,
DefaultFunc: OwnerOrOrgEnvDefaultFunc,
Description: descriptions["organization"],
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("GITHUB_ORGANIZATION", nil),
Description: descriptions["organization"],
ConflictsWith: []string{"owner"},
},
"base_url": {
Type: schema.TypeString,
Expand Down

0 comments on commit 980b39c

Please sign in to comment.