Skip to content

Commit

Permalink
Correct error message when destroying projects without force (#492)
Browse files Browse the repository at this point in the history
The error message shown when trying to destroy a non-empty project asked
to set `force_delete` to true, but no such variable is available. The PR
corrects the message to say `force_destroy` instead.

Signed-off-by: Radoslaw Kutylowski <[email protected]>
  • Loading branch information
Radoslaw-Kutylowski authored Feb 3, 2025
1 parent 7ce606f commit 3f23313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/resource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func resourceProjectDelete(d *schema.ResourceData, m interface{}) error {
projectName := d.Get("name").(string)
repos, _ := apiClient.GetProjectRepositories(projectName)
if len(repos) != 0 {
return fmt.Errorf("project %s is not empty, please set force_delete to TRUE to clean all repositories", projectName)
return fmt.Errorf("project %s is not empty, please set force_destroy to TRUE to clean all repositories", projectName)
}
}

Expand Down

0 comments on commit 3f23313

Please sign in to comment.