Merge pull request #1426 from weaveworks/1418-clean-cancel
Handle cancelled allocation in 'weave attach' Fixes #1418.
This commit is contained in:
commit
7f74ae7912
5 files changed
+61
-52
No files matched your search
@@ -186,6 +186,15 @@ func hasBeenCancelled(cancelChan <-chan bool) func() bool {
|
||||
}
|
||||
}
|
||||
|
||||
type errorCancelled struct {
|
||||
kind string
|
||||
ident string
|
||||
}
|
||||
|
||||
func (e *errorCancelled) Error() string {
|
||||
return fmt.Sprintf("%s request for %s cancelled", e.kind, e.ident)
|
||||
}
|
||||
|
||||
// Actor client API
|
||||
|
||||
// Allocate (Sync) - get new IP address for container with given name in range
|
||||
|
||||
Reference in new issue
Block a user