mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Terraform: Try to init before destroy
This commit is contained in:
parent
f27af5b588
commit
b9b618a1f0
@ -96,6 +96,9 @@ func (c *Client) CreateCluster(
|
||||
|
||||
// DestroyCluster destroys a Constellation cluster using Terraform.
|
||||
func (c *Client) DestroyCluster(ctx context.Context) error {
|
||||
if err := c.tf.Init(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
return c.tf.Destroy(ctx)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user