mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
Terraform: Try to init before destroy
This commit is contained in:
parent
f27af5b588
commit
b9b618a1f0
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue