Skip to content

Commit

Permalink
new vultr baremetal errormessage (#35)
Browse files Browse the repository at this point in the history
* new vultr baremetal errormessage

* removed old errormessage from error check
  • Loading branch information
bastibrunner authored and squat committed May 23, 2018
1 parent c8cc3a1 commit 5a5d025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vultr/resource_bare_metal.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func resourceBareMetalRead(d *schema.ResourceData, meta interface{}) error {

instance, err := client.GetBareMetalServer(d.Id())
if err != nil {
if err.Error() == "Invalid bare metal instance." {
if err.Error() == "Invalid server." {
log.Printf("[WARN] Removing bare metal instance (%s) because it is gone", d.Id())
d.SetId("")
return nil
Expand Down

0 comments on commit 5a5d025

Please sign in to comment.