mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-23 13:51:06 -05: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.
|
// DestroyCluster destroys a Constellation cluster using Terraform.
|
||||||
func (c *Client) DestroyCluster(ctx context.Context) error {
|
func (c *Client) DestroyCluster(ctx context.Context) error {
|
||||||
|
if err := c.tf.Init(ctx); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
return c.tf.Destroy(ctx)
|
return c.tf.Destroy(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user