Fixes from PR
This commit is contained in:
parent
c806e8f453
commit
af24ac9f47
|
@ -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,
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue