Skip to content

Commit 88322ab

Browse files
committed
fix: Rename operation to match new name
1 parent b889565 commit 88322ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/iaas/attach_nic/attach_nic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func main() {
3030
// Attach an existing network interface to an existing server
3131
var httpResp *http.Response
3232
ctxWithHTTPResp := runtime.WithCaptureHTTPResponse(context.Background(), &httpResp)
33-
err = iaasClient.AddNICToServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
33+
err = iaasClient.AddNicToServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
3434
if err != nil {
3535
fmt.Fprintf(os.Stderr, "[iaas API] Error when calling `AddNICToServer`: %v\n", err)
3636
} else {
@@ -47,7 +47,7 @@ func main() {
4747

4848
fmt.Printf("[iaas API] Nic %q has been successfully attached to the server %s.\n", nicId, serverId)
4949

50-
err = iaasClient.RemoveNICFromServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
50+
err = iaasClient.RemoveNicFromServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
5151
if err != nil {
5252
fmt.Fprintf(os.Stderr, "[iaas API] Error when calling `RemoveNICFromServer`: %v\n", err)
5353
} else {

0 commit comments

Comments
 (0)