Skip to content

Commit

Permalink
Merge pull request #382 from LBGarber/fix-stackscript-test
Browse files Browse the repository at this point in the history
Fix issue with StackScript test cleanup
  • Loading branch information
0xch4z authored Jul 19, 2021
2 parents 50f88fe + 4558d8a commit 1ceaa41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linode/resource_linode_stackscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func testAccCheckLinodeStackscriptDestroy(s *terraform.State) error {
return fmt.Errorf("Linode Stackscript with id %d still exists", id)
}

if apiErr, ok := err.(*linodego.Error); ok && apiErr.Code != 404 {
if apiErr, ok := err.(*linodego.Error); ok && apiErr.Code != 401 {
return fmt.Errorf("Error requesting Linode Stackscript with id %d", id)
}
}
Expand Down

0 comments on commit 1ceaa41

Please sign in to comment.