Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Fix "weave ps" output when weave is not running
Browse files Browse the repository at this point in the history
The #2418 has changed a behaviour of "weave ps" which outputs
"Link not found" when weave is not running. The previous
behaviour was to output an empty line.
  • Loading branch information
brb committed Jul 14, 2016
1 parent acdd739 commit 26fe5a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prog/weaveutil/addrs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"fmt"

"github.com/fsouza/go-dockerclient"
Expand All @@ -21,6 +22,9 @@ func containerAddrs(args []string) error {

pred, err := common.ConnectedToBridgePredicate(bridgeName)
if err != nil {
if err.Error() == errors.New("Link not found").Error() {
return nil
}
return err
}

Expand Down

0 comments on commit 26fe5a2

Please sign in to comment.