cli: split image into oss and enterprise (#1788)

This commit is contained in:
3u13r 2023-05-23 10:49:47 +02:00 committed by GitHub
parent cfef384f36
commit 6062b10035
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 47 additions and 21 deletions

View file

@ -411,13 +411,13 @@ func (c *Client) writeVars(vars Variables) error {
// If a variables file already exists, check if it's the same as we're expecting, so we can continue using it.
varsContent, err := c.file.Read(pathToVarsFile)
if err != nil {
return err
return fmt.Errorf("read variables file: %w", err)
}
if vars.String() != string(varsContent) {
return ErrTerraformWorkspaceExistsWithDifferentVariables
}
} else if err != nil {
return err
return fmt.Errorf("write variables file: %w", err)
}
return nil