Commit fb27bca
David Noble
DVPL-5428 Add error message when SPLUNK_HOME not defined
We now produce a warning message with a recommendation at the start of SearchCommand.process:
{code}
if u'SPLUNK_HOME' not in environ:
self.logger.warning(
u'SPLUNK_HOME environment variable is undefined.\n'
u'If you are testing outside of Splunk, consider running under control of the Splunk CLI:\n'
u' splunk cmd %s\n'
u'If you are running inside of Splunk, SPLUNK_HOME should be defined. Consider troubleshooting your '
u'installation.', self)
{code}1 parent e897436 commit fb27bca
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
| |||
0 commit comments