This commit is contained in:
Kalle Carlbark 2019-09-11 09:32:15 +02:00
parent a10a3eb619
commit f554667faa
No known key found for this signature in database
GPG key ID: 3FC0C93C5A5A0670

View file

@ -3,6 +3,7 @@ package nbclient
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"net/http" "net/http"
"time" "time"
@ -104,5 +105,5 @@ func (i *Dcim_Interfaces_Create) CreateInterface(n *NetBox) error {
} else { } else {
return errors.Errorf("Response was: %d\n", response.StatusCode) return errors.Errorf("Response was: %d\n", response.StatusCode)
} }
return nil fmt.Println(response.Body)
} }