Skip to content

Commit

Permalink
Review 2
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Feb 24, 2016
1 parent d83ae39 commit 561c69d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cmd/cli/cmd/set/triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,11 @@ func triggerMatchesBuildImageChange(trigger ImageChangeTrigger, strategyTrigger
if imageChange.From == nil {
return strategyTrigger != nil && strategyTrigger.From == trigger.From && strategyTrigger.Namespace == trigger.Namespace
}
return strategyTrigger.From == trigger.From && strategyTrigger.Namespace == trigger.Namespace
namespace := imageChange.From.Namespace
if strategyTrigger != nil {
namespace = defaultNamespace(namespace, strategyTrigger.Namespace)
}
return imageChange.From.Name == trigger.From && namespace == trigger.Namespace
}

func filterBuildImageTriggers(src []buildapi.BuildTriggerPolicy, trigger ImageChangeTrigger, strategyTrigger *ImageChangeTrigger) []buildapi.BuildTriggerPolicy {
Expand Down

0 comments on commit 561c69d

Please sign in to comment.