mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
Fail if filter yields no results.
This commit is contained in:
parent
67b4b4cbfb
commit
2caae49a3b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user