Fail if filter yields no results.

This commit is contained in:
Joern Barthel 2016-08-05 17:09:12 +02:00
parent 67b4b4cbfb
commit 2caae49a3b

View File

@ -121,7 +121,7 @@ func dataSourceAwsIPRangesRead(d *schema.ResourceData, meta interface{}) error {
}
if len(prefixes) == 0 {
log.Printf("[WARN] No ip ranges result from filters")
return fmt.Errorf(" No IP ranges result from filters")
}
sort.Strings(prefixes)