Skip to content

Commit 2c657fd

Browse files
committed
tts: Fix application mode in TTS iterator
1 parent 211b110 commit 2c657fd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pkg/source/tts/source.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ func (s Source) ExportDevice(devID string) (*ttnpb.EndDevice, error) {
113113
}
114114

115115
// Iterator implements source.Source.
116-
func (s Source) Iterator(bool) iterator.Iterator {
116+
func (s Source) Iterator(isApplication bool) iterator.Iterator {
117+
if isApplication && s.config.AppID != "" {
118+
return iterator.NewListIterator([]string{s.config.AppID})
119+
}
117120
return iterator.NewReaderIterator(os.Stdin, '\n')
118121
}
119122

0 commit comments

Comments
 (0)