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

View file

@ -101,9 +101,11 @@ func (i *Dcim_Interfaces_Create) CreateInterface(n *NetBox) error {
}
if response.StatusCode == http.StatusCreated {
fmt.Println(response.Body)
return nil
} else {
return errors.Errorf("Response was: %d\n", response.StatusCode)
}
fmt.Println(response.Body)
return nil
}