mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Code clean-up
This commit is contained in:
parent
83160acf69
commit
ba880b136b
@ -1,7 +1,6 @@
|
|||||||
package openstack
|
package openstack
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
@ -258,7 +257,7 @@ func waitForFirewallDeletion(networkingClient *gophercloud.ServiceClient, id str
|
|||||||
log.Printf("[DEBUG] Firewall %s is actually deleted", id)
|
log.Printf("[DEBUG] Firewall %s is actually deleted", id)
|
||||||
return "", "DELETED", nil
|
return "", "DELETED", nil
|
||||||
}
|
}
|
||||||
return nil, "", errors.New(fmt.Sprintf("Unexpected status code %d", httpStatus.Actual))
|
return nil, "", fmt.Errorf("Unexpected status code %d", httpStatus.Actual)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("[DEBUG] Firewall %s deletion is pending", id)
|
log.Printf("[DEBUG] Firewall %s deletion is pending", id)
|
||||||
|
@ -62,9 +62,6 @@ func resourceFWPolicyV1() *schema.Resource {
|
|||||||
|
|
||||||
func resourceFWPolicyV1Create(d *schema.ResourceData, meta interface{}) error {
|
func resourceFWPolicyV1Create(d *schema.ResourceData, meta interface{}) error {
|
||||||
|
|
||||||
// TODO To remove
|
|
||||||
time.Sleep(time.Second * 5)
|
|
||||||
|
|
||||||
config := meta.(*Config)
|
config := meta.(*Config)
|
||||||
networkingClient, err := config.networkingV2Client(d.Get("region").(string))
|
networkingClient, err := config.networkingV2Client(d.Get("region").(string))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user