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 4, 2020
1 parent a3b3e32 commit ba595b6
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 ba595b6

Please sign in to comment.