fix.
This commit is contained in:
parent
f554667faa
commit
79ae6869a7
1 changed files with 3 additions and 1 deletions
|
@ -101,9 +101,11 @@ func (i *Dcim_Interfaces_Create) CreateInterface(n *NetBox) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if response.StatusCode == http.StatusCreated {
|
if response.StatusCode == http.StatusCreated {
|
||||||
|
fmt.Println(response.Body)
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
return errors.Errorf("Response was: %d\n", response.StatusCode)
|
return errors.Errorf("Response was: %d\n", response.StatusCode)
|
||||||
}
|
}
|
||||||
fmt.Println(response.Body)
|
return nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue