splunk/splunk-sdk-python — Issue #16: Cannot get existing value from a conf file
Author: Ansman
Created: 2011-11-04 17:14:39+00:00
State: open

I tried doing this:

service.confs['web']['settings']['httpport']

But I get a

Traceback (most recent call last):
File "", line 1, in
File "/Users/ngiertz/helmut/helmut/contrib/splunk-sdk-python-2011-09-15.zip/splunk-sdk-python/splunk/client.py", line 288, in __getitem__
File "/Users/ngiertz/helmut/helmut/contrib/splunk-sdk-python-2011-09-15.zip/splunk-sdk-python/splunk/client.py", line 298, in read
File "/Users/ngiertz/helmut/helmut/contrib/splunk-sdk-python-2011-09-15.zip/splunk-sdk-python/splunk/client.py", line 267, in _filter_content
AttributeError: 'list' object has no attribute 'has_key'

The same goes for just calling `read` on the stanza