mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-03-27 20:01:07 +01:00
Added repository level hook data and resources
This commit is contained in:
@@ -76,8 +76,8 @@ func resourceProjectHookRead(d *schema.ResourceData, m interface{}) error {
|
||||
if id != "" {
|
||||
parts := strings.Split(id, "/")
|
||||
if len(parts) == 2 {
|
||||
d.Set("project", parts[0])
|
||||
d.Set("hook", parts[1])
|
||||
_ = d.Set("project", parts[0])
|
||||
_ = d.Set("hook", parts[1])
|
||||
} else {
|
||||
return fmt.Errorf("incorrect ID format, should match `project/hook`")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user