Skip to content

Commit

Permalink
US64662: add new pending states for host create and delete (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ron-saito authored May 29, 2024
1 parent fbb47be commit db1d39d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/resources/resource_host.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (C) Copyright 2020-2023 Hewlett Packard Enterprise Development LP
// (C) Copyright 2020-2024 Hewlett Packard Enterprise Development LP

package resources

Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit db1d39d

Please sign in to comment.