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": { "username": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true ForceNew: true,
}, },
"repository": { "repository": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true ForceNew: true,
}, },
"reviewers": { "reviewers": {
Type: schema.TypeSet, Type: schema.TypeSet,

View File

@ -27,10 +27,12 @@ func resourceHook() *schema.Resource {
"username": &schema.Schema{ "username": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true,
}, },
"repository": &schema.Schema{ "repository": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true,
}, },
"active": &schema.Schema{ "active": &schema.Schema{
Type: schema.TypeBool, Type: schema.TypeBool,
@ -96,8 +98,8 @@ func resourceHookCreate(d *schema.ResourceData, m interface{}) error {
return err return err
} }
d.SetId(string(hook.Uuid)) d.SetId(hook.Uuid)
d.Set("uuid", string(hook.Uuid)) d.Set("uuid", hook.Uuid)
return resourceHookRead(d, m) return resourceHookRead(d, m)
} }