@@ -12,9 +12,9 @@ import (
1212)
1313
1414func computeInterfaceAttachV2AttachFunc (
15- computeClient * gophercloud.ServiceClient , instanceId , attachmentId string ) resource.StateRefreshFunc {
15+ computeClient * gophercloud.ServiceClient , instanceID , attachmentID string ) resource.StateRefreshFunc {
1616 return func () (interface {}, string , error ) {
17- va , err := attachinterfaces .Get (computeClient , instanceId , attachmentId ).Extract ()
17+ va , err := attachinterfaces .Get (computeClient , instanceID , attachmentID ).Extract ()
1818 if err != nil {
1919 if _ , ok := err .(gophercloud.ErrDefault404 ); ok {
2020 return va , "ATTACHING" , nil
@@ -27,20 +27,20 @@ func computeInterfaceAttachV2AttachFunc(
2727}
2828
2929func computeInterfaceAttachV2DetachFunc (
30- computeClient * gophercloud.ServiceClient , instanceId , attachmentId string ) resource.StateRefreshFunc {
30+ computeClient * gophercloud.ServiceClient , instanceID , attachmentID string ) resource.StateRefreshFunc {
3131 return func () (interface {}, string , error ) {
3232 log .Printf ("[DEBUG] Attempting to detach openstack_compute_interface_attach_v2 %s from instance %s" ,
33- attachmentId , instanceId )
33+ attachmentID , instanceID )
3434
35- va , err := attachinterfaces .Get (computeClient , instanceId , attachmentId ).Extract ()
35+ va , err := attachinterfaces .Get (computeClient , instanceID , attachmentID ).Extract ()
3636 if err != nil {
3737 if _ , ok := err .(gophercloud.ErrDefault404 ); ok {
3838 return va , "DETACHED" , nil
3939 }
4040 return va , "" , err
4141 }
4242
43- err = attachinterfaces .Delete (computeClient , instanceId , attachmentId ).ExtractErr ()
43+ err = attachinterfaces .Delete (computeClient , instanceID , attachmentID ).ExtractErr ()
4444 if err != nil {
4545 if _ , ok := err .(gophercloud.ErrDefault404 ); ok {
4646 return va , "DETACHED" , nil
@@ -53,7 +53,7 @@ func computeInterfaceAttachV2DetachFunc(
5353 return nil , "" , err
5454 }
5555
56- log .Printf ("[DEBUG] openstack_compute_interface_attach_v2 %s is still active." , attachmentId )
56+ log .Printf ("[DEBUG] openstack_compute_interface_attach_v2 %s is still active." , attachmentID )
5757 return nil , "" , nil
5858 }
5959}
@@ -64,8 +64,8 @@ func computeInterfaceAttachV2ParseID(id string) (string, string, error) {
6464 return "" , "" , fmt .Errorf ("Unable to determine openstack_compute_interface_attach_v2 %s ID" , id )
6565 }
6666
67- instanceId := idParts [0 ]
68- attachmentId := idParts [1 ]
67+ instanceID := idParts [0 ]
68+ attachmentID := idParts [1 ]
6969
70- return instanceId , attachmentId , nil
70+ return instanceID , attachmentID , nil
7171}
0 commit comments