From 12ca9cf87848868e0418f76515aa9b70401d3877 Mon Sep 17 00:00:00 2001 From: Alessandro Degano Date: Wed, 8 May 2019 08:56:17 +0200 Subject: [PATCH] Fix bug introduced by #58. PR #58 introduced a bug where after a pipeline is set only the pipelines in the configuration are gotten. However this step was also trying to "get" pipelines from teams other than the one currently logged in resulting in an error. Signed-off-by: Alessandro Degano --- out/command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/out/command.go b/out/command.go index 4d5f6af..4a4365c 100644 --- a/out/command.go +++ b/out/command.go @@ -127,6 +127,9 @@ func (c *Command) Run(input concourse.OutRequest) (concourse.OutResponse, error) c.logger.Debugf("Login successful\n") for _, pipeline := range pipelines { + if pipeline.TeamName != teamName { + continue + } c.logger.Debugf("Getting pipeline: %s\n", pipeline.Name) outBytes, err := c.flyCommand.GetPipeline(pipeline.Name) if err != nil {