Code clean-up
This commit is contained in:
parent
83160acf69
commit
ba880b136b
|
@ -1,7 +1,6 @@
|
|||
package openstack
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
@ -258,7 +257,7 @@ func waitForFirewallDeletion(networkingClient *gophercloud.ServiceClient, id str
|
|||
log.Printf("[DEBUG] Firewall %s is actually deleted", id)
|
||||
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)
|
||||
|
|
|
@ -62,9 +62,6 @@ func resourceFWPolicyV1() *schema.Resource {
|
|||
|
||||
func resourceFWPolicyV1Create(d *schema.ResourceData, meta interface{}) error {
|
||||
|
||||
// TODO To remove
|
||||
time.Sleep(time.Second * 5)
|
||||
|
||||
config := meta.(*Config)
|
||||
networkingClient, err := config.networkingV2Client(d.Get("region").(string))
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue