Commit 4ecd1f9
committed
Fix missing requirement for uri
When loading configuration from an option file (using
OpenSearch::CLI#load, which rely on OptionParser#load) and `uri` is not
loaded, an undefined method exception is raised when an `url` option is
parsed, but that exception is captured by the OptionParser logic
resulting in the option file to be completely ignored.
While #load return false to indicate the failure, consumers of the
library are unlikely to check it because end users may or may not rely
on option files.
Unconditionally require uri to avoid this issue.1 parent 7c4f490 commit 4ecd1f9
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments