splunk / splunk-webframework

Splunk Web Framework
http://dev.splunk.com
Apache License 2.0
51 stars 13 forks source link

Doesn't work with >= Splunk 7 #7

Open ghost opened 6 years ago

ghost commented 6 years ago

Using OSX 10.13.4 (High Sierra)

$ ./splunkdj setup
Where is Splunk installed (version 5.0 or later is required)? []: /Applications/Splunk/

Setting up the Splunk Web Framework...
The version must be >= 'Splunk 5.0', found 'Splunk 7.1.0 (build 2e75b3406c5b)' in '/Applications/Splunk'. Run 'splunkdj setup' and try again.

Seeing the following lines in appdo.py:

if not (version.startswith("Splunk 5") or version.startswith("Splunk 6") or version.startswith("Splunk 201")):
                os.remove(path.join(MAIN_DIR, ".splunkhome"))
                print "The version must be >= 'Splunk 5.0', found '%s' in '%s'. Run 'splunkdj setup' and try again." % (version, splunk_home)
                sys.exit(1)

So this will not run for any version 7 of splunk as written.

Noticing the last commit to this project was about four years ago. Is this maintained by Splunk?