bug fix: subset matching for tags if instances has more than one
@@ -210,10 +210,12 @@ func (cmd *TrafficStartCommand) StartTraffic(serviceName string, version string,
// IsServiceActive .
func (cmd *TrafficStartCommand) IsServiceActive(serviceName, version string, instances []*api.ServiceInstance) bool {
for _, instance := range instances {
- if version == strings.Join(instance.Tags, ", ") {
+ for _, tag := range instance.Tags {
+ if version == tag {
return true
}
}
+ }
return false
}
