Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -15,7 +15,7 @@ func getSwarm(ctx context.Context, c swarmapi.ControlClient) (*swarmapi.Cluster, |
| 15 | 15 |
} |
| 16 | 16 |
|
| 17 | 17 |
if len(rl.Clusters) == 0 {
|
| 18 |
- return nil, errors.NewRequestNotFoundError(errNoSwarm) |
|
| 18 |
+ return nil, errors.NewRequestNotFoundError(ErrNoSwarm) |
|
| 19 | 19 |
} |
| 20 | 20 |
|
| 21 | 21 |
// TODO: assume one cluster only |