Skip to content

Commit

Permalink
Add missed merge from @rberlind
Browse files Browse the repository at this point in the history
  • Loading branch information
DRuggeri committed Aug 23, 2018
1 parent 3657ae1 commit 52d9ad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions restapi/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ func make_api_object(d *schema.ResourceData, m interface{}) (*api_object, error)

log.Printf("common.go: make_api_object routine called for id '%s'\n", id)

if nil != d.Get("create_path") { post_path = d.Get("create_path").(string) }
if nil != d.Get("read_path") { get_path = d.Get("read_path").(string) }
if nil != d.Get("update_path") { put_path = d.Get("update_path").(string) }
if nil != d.Get("destroy_path") { delete_path = d.Get("destroy_path").(string) }
if "" != d.Get("create_path") { post_path = d.Get("create_path").(string) }
if "" != d.Get("read_path") { get_path = d.Get("read_path").(string) }
if "" != d.Get("update_path") { put_path = d.Get("update_path").(string) }
if "" != d.Get("destroy_path") { delete_path = d.Get("destroy_path").(string) }

obj, err := NewAPIObject (
m.(*api_client),
Expand Down

0 comments on commit 52d9ad5

Please sign in to comment.