Fixes from PR

This commit is contained in:
Colin Wood 2016-08-09 09:54:38 -07:00
parent c806e8f453
commit af24ac9f47
2 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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)
}