Skip to content

Commit

Permalink
focrcenew
Browse files Browse the repository at this point in the history
  • Loading branch information
BarnabyShearer committed Nov 22, 2021
1 parent 75b75c8 commit 523aeb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dockerhub/resource_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ func resourceRepository() *schema.Resource {
"description": {
Type: schema.TypeString,
Required: false,
Optional: true,
Optional: true,
Description: "Repository name.",
},
"full_description": {
Type: schema.TypeString,
Required: false,
Optional: true,
Optional: true,
Description: "Repository name.",
},
"private": {
Type: schema.TypeBool,
Required: false,
Optional: true,
Optional: true,
Default: false,
Description: "Is the repository private.",
},
Expand Down
7 changes: 5 additions & 2 deletions dockerhub/resource_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func resourceToken() *schema.Resource {
"label": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Token label.",
},
"token": {
Expand All @@ -32,8 +33,10 @@ func resourceToken() *schema.Resource {
Description: "Token to use as password",
},
"scopes": {
Type: schema.TypeList,
Required: true,
Type: schema.TypeList,
Required: true,
ForceNew: true,
Description: "Permissions e.g. 'repo:admin'",
},
},
}
Expand Down

0 comments on commit 523aeb9

Please sign in to comment.