Fixes from PR
This commit is contained in:
parent
c806e8f453
commit
af24ac9f47
|
@ -27,12 +27,12 @@ func resourceDefaultReviewers() *schema.Resource {
|
|||
"username": {
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ForceNew: true
|
||||
ForceNew: true,
|
||||
},
|
||||
"repository": {
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ForceNew: true
|
||||
ForceNew: true,
|
||||
},
|
||||
"reviewers": {
|
||||
Type: schema.TypeSet,
|
||||
|
|
|
@ -27,10 +27,12 @@ func resourceHook() *schema.Resource {
|
|||
"username": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ForceNew: true,
|
||||
},
|
||||
"repository": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ForceNew: true,
|
||||
},
|
||||
"active": &schema.Schema{
|
||||
Type: schema.TypeBool,
|
||||
|
@ -96,8 +98,8 @@ func resourceHookCreate(d *schema.ResourceData, m interface{}) error {
|
|||
return err
|
||||
}
|
||||
|
||||
d.SetId(string(hook.Uuid))
|
||||
d.Set("uuid", string(hook.Uuid))
|
||||
d.SetId(hook.Uuid)
|
||||
d.Set("uuid", hook.Uuid)
|
||||
|
||||
return resourceHookRead(d, m)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue