ampledata/splunk_app_pagerduty — pull request #1 by gerirgaudi (2012-09-03 22:20:54+00:00)
Title: fixed a mismatch in config section name between setup and pagerduty.py

When running pagerduty.py, the following error was produced:

Traceback (most recent call last):
File "/opt/splunk/bin/scripts/pagerduty.py", line 159, in
main()
File "/opt/splunk/bin/scripts/pagerduty.py", line 141, in main
service_api_key = get_service_api_key(config_file)
File "/opt/splunk/bin/scripts/pagerduty.py", line 129, in get_service_api_key
return config.get('service_api', 'service_api_key')
File "/usr/lib/python2.6/ConfigParser.py", line 532, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'service_api'