mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 23:04:53 -04:00
Delete cluster IDs file on terminate
This commit is contained in:
parent
259c88fa1a
commit
bc5471e9b3
2 changed files with 7 additions and 0 deletions
|
@ -62,5 +62,9 @@ func terminate(cmd *cobra.Command, terminator cloudTerminator, fileHandler file.
|
|||
retErr = multierr.Append(err, fmt.Errorf("failed to remove file: '%s', please remove it manually", constants.WGQuickConfigFilename))
|
||||
}
|
||||
|
||||
if err := fileHandler.Remove(constants.ClusterIDsFileName); err != nil && !errors.Is(err, fs.ErrNotExist) {
|
||||
retErr = multierr.Append(err, fmt.Errorf("failed to remove file: '%s', please remove it manually", constants.ClusterIDsFileName))
|
||||
}
|
||||
|
||||
return retErr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue