From db1d39d19660226eb687d7ee24e60033e5a6d745 Mon Sep 17 00:00:00 2001 From: Ron Saito Date: Wed, 29 May 2024 09:39:22 -0600 Subject: [PATCH] US64662: add new pending states for host create and delete (#199) --- internal/resources/resource_host.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/resources/resource_host.go b/internal/resources/resource_host.go index 400291d..6655449 100644 --- a/internal/resources/resource_host.go +++ b/internal/resources/resource_host.go @@ -1,4 +1,4 @@ -// (C) Copyright 2020-2023 Hewlett Packard Enterprise Development LP +// (C) Copyright 2020-2024 Hewlett Packard Enterprise Development LP package resources @@ -510,6 +510,7 @@ func resourceMetalHostCreate(d *schema.ResourceData, meta interface{}) (err erro string(rest.HOSTSTATE_IMAGING_PREP), string(rest.HOSTSTATE_IMAGING), string(rest.HOSTSTATE_CONNECTING), + string(rest.HOSTSTATE_ATTACHING), string(rest.HOSTSTATE_BOOTING), }, Target: []string{ @@ -885,6 +886,7 @@ func resourceMetalHostDelete(d *schema.ResourceData, meta interface{}) (err erro // the delete operation from Terraform (since it has no reference to the resource). deleteStateConf := &retry.StateChangeConf{ Pending: []string{ + string(rest.HOSTSTATE_DETACHING), string(rest.HOSTSTATE_DELETING), }, Target: []string{