All Apps and Add-ons
Highlighted

Can't select action in "Execute external workflow action" 's window

Communicator

I have in my EWA (External Workflow Actions) diferent alertaction for testing it and all of them enabled. I checked the alertaction column with the names used in alert_actions.conf. When I use the Execute EWA action, the dropdown is like is disabled.

Don not know what more to check, thanks for reading.

EWA window

Highlighted

Re: Can't select action in "Execute external workflow action" 's window

Communicator

Found this in _internal:

2018-06-27 08:31:10,111 ERROR  pid="29459" logger="alert_manager_rest_handler" message="Unknown exception: int() argument must be a string or a number, not 'NoneType'" (externalworkflow_actions_rest_handler.py:64)
Traceback (most recent call last):
  File "/opt/splunk/etc/apps/alert_manager/bin/externalworkflow_actions_rest_handler.py", line 54, in handle
    return operator.methodcaller(method, args)(self)
  File "/opt/splunk/etc/apps/alert_manager/bin/externalworkflow_actions_rest_handler.py", line 87, in handle_get
    return operator.methodcaller(action, sessionKey, query_params)(self)
  File "/opt/splunk/etc/apps/alert_manager/bin/externalworkflow_actions_rest_handler.py", line 205, in _get_externalworkflow_actions
    if int(entry['disabled']) == 0:
TypeError: int() argument must be a string or a number, not 'NoneType'

So I deleted the check for the disable the if made and right now I can use the dropdown.

Someone knows how to check this?: uri = '/servicesNS/nobody/alertmanager/storage/collections/data/externalworkflowactions?q=output_mode=json'

I think there was the error, I would like have my if back 🙂

0 Karma
Highlighted

Re: Can't select action in "Execute external workflow action" 's window

SplunkTrust
SplunkTrust

Clearly a bug, will take a look...

Highlighted

Re: Can't select action in "Execute external workflow action" 's window

SplunkTrust
SplunkTrust

Here's the fix that we will put into the next release.

if len(entries) > 0:
            for entry in entries:        
                status = False if ( entry['disabled'] == 0 or entry['disabled'] == "0" or entry['disabled'] == False) else True

                if status == False:
                    ewa = {'_key': entry['_key'], 'label': entry['label'], 'alert_action': entry['alert_action'] }
                    externalworkflow_actions.append(ewa)
        return self.response(externalworkflow_actions, httplib.OK)
Highlighted

Re: Can't select action in "Execute external workflow action" 's window

Path Finder

Hi, I had similar issue, I updated externalworkflowactionsrest_handler and its still same.

0 Karma
Speak Up for Splunk Careers!

We want to better understand the impact Splunk experience and expertise has has on individuals' careers, and help highlight the growing demand for Splunk skills.