Add queued as a pending state for Packet provider.
This commit is contained in:
parent
e27df87b68
commit
2962305125
|
@ -158,7 +158,7 @@ func resourcePacketDeviceCreate(d *schema.ResourceData, meta interface{}) error
|
||||||
|
|
||||||
log.Printf("[INFO] Device ID: %s", d.Id())
|
log.Printf("[INFO] Device ID: %s", d.Id())
|
||||||
|
|
||||||
_, err = WaitForDeviceAttribute(d, "active", []string{"provisioning"}, "state", meta)
|
_, err = WaitForDeviceAttribute(d, "active", []string{"queued", "provisioning"}, "state", meta)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"Error waiting for device (%s) to become ready: %s", d.Id(), err)
|
"Error waiting for device (%s) to become ready: %s", d.Id(), err)
|
||||||
|
|
Loading…
Reference in New Issue