Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 20192a2

Browse files
authored
Merge pull request #38 from HubbleStack/develop
Merge to master (prep for v2016.10.3)
2 parents f471d23 + a78050e commit 20192a2

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ repo for updates and bugfixes!)
4848

4949
.. code-block:: shell
5050
51-
wget https://spm.hubblestack.io/quasar/hubblestack_quasar-2016.9.0-1.spm
52-
spm local install hubblestack_quasar-2016.9.0-1.spm
51+
wget https://spm.hubblestack.io/quasar/hubblestack_quasar-2016.10.3-1.spm
52+
spm local install hubblestack_quasar-2016.10.3-1.spm
5353
5454
You should now be able to sync the new modules to your minion(s) using the
5555
``sync_returners`` Salt utility:

_returners/slack_pulsar_returner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
# Import Salt Libs
7070
import salt.returners
7171

72-
__version__ = 'v2016.10.1'
72+
__version__ = 'v2016.10.3'
7373

7474
log = logging.getLogger(__name__)
7575

_returners/splunk_nebula_return.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import logging
3232

33-
__version__ = 'v2016.10.1'
33+
__version__ = 'v2016.10.3'
3434

3535
_max_content_bytes = 100000
3636
http_event_collector_SSL_verify = False
@@ -92,7 +92,7 @@ def returner(ret):
9292

9393
def _get_options():
9494
try:
95-
token = __salt__['config.get']('hubblestack:nebula:returner:splunk:token')
95+
token = __salt__['config.get']('hubblestack:nebula:returner:splunk:token').strip()
9696
indexer = __salt__['config.get']('hubblestack:nebula:returner:splunk:indexer')
9797
sourcetype = __salt__['config.get']('hubblestack:nebula:returner:splunk:sourcetype')
9898
index = __salt__['config.get']('hubblestack:nebula:returner:splunk:index')
@@ -236,5 +236,7 @@ def flushBatch(self):
236236
r = requests.post(self.server_uri, data=' '.join(self.batchEvents), headers=headers, verify=http_event_collector_SSL_verify, proxies=self.proxy, timeout=self.timeout)
237237
except requests.exceptions.Timeout:
238238
log.error('Request to splunk timed out. Not retrying.')
239+
except Exception as e:
240+
log.error('Request to splunk threw an error: {0}'.format(e))
239241
self.batchEvents = []
240242
self.currentByteLength = 0

_returners/splunk_nova_return.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import logging
3232

33-
__version__ = 'v2016.10.1'
33+
__version__ = 'v2016.10.3'
3434

3535
_max_content_bytes = 100000
3636
http_event_collector_SSL_verify = False
@@ -150,7 +150,7 @@ def event_return(event):
150150

151151
def _get_options():
152152
try:
153-
token = __salt__['config.get']('hubblestack:nova:returner:splunk:token')
153+
token = __salt__['config.get']('hubblestack:nova:returner:splunk:token').strip()
154154
indexer = __salt__['config.get']('hubblestack:nova:returner:splunk:indexer')
155155
sourcetype = __salt__['config.get']('hubblestack:nova:returner:splunk:sourcetype')
156156
index = __salt__['config.get']('hubblestack:nova:returner:splunk:index')
@@ -294,5 +294,7 @@ def flushBatch(self):
294294
r = requests.post(self.server_uri, data=' '.join(self.batchEvents), headers=headers, verify=http_event_collector_SSL_verify, proxies=self.proxy, timeout=self.timeout)
295295
except requests.exceptions.Timeout:
296296
log.error('Request to splunk timed out. Not retrying.')
297+
except Exception as e:
298+
log.error('Request to splunk threw an error: {0}'.format(e))
297299
self.batchEvents = []
298300
self.currentByteLength = 0

_returners/splunk_pulsar_return.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
import logging
3535

36-
__version__ = 'v2016.10.1'
36+
__version__ = 'v2016.10.3'
3737

3838
_max_content_bytes = 100000
3939
http_event_collector_SSL_verify = False
@@ -184,7 +184,7 @@ def _dedupList(l):
184184

185185
def _get_options():
186186
try:
187-
token = __salt__['config.get']('hubblestack:pulsar:returner:splunk:token')
187+
token = __salt__['config.get']('hubblestack:pulsar:returner:splunk:token').strip()
188188
indexer = __salt__['config.get']('hubblestack:pulsar:returner:splunk:indexer')
189189
sourcetype = __salt__['config.get']('hubblestack:pulsar:returner:splunk:sourcetype')
190190
index = __salt__['config.get']('hubblestack:pulsar:returner:splunk:index')
@@ -301,5 +301,7 @@ def flushBatch(self):
301301
r = requests.post(self.server_uri, data=' '.join(self.batchEvents), headers=headers, verify=http_event_collector_SSL_verify, proxies=self.proxy, timeout=self.timeout)
302302
except requests.exceptions.Timeout:
303303
log.error('Request to splunk timed out. Not retrying.')
304+
except Exception as e:
305+
log.error('Request to splunk threw an error: {0}'.format(e))
304306
self.batchEvents = []
305307
self.currentByteLength = 0

0 commit comments

Comments
 (0)