Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(client): check if unit exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Sep 18, 2014
1 parent 7bd1709 commit 725ae0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import (

// Destroy units for a given target
func (c *FleetClient) Destroy(target string) (err error) {
// check if the unit exists
if _, err := c.Units(target); err != nil {
return err
}
component, num, err := splitTarget(target)
if err != nil {
return
Expand Down

0 comments on commit 725ae0d

Please sign in to comment.