StackStorm-Exchange / stackstorm-zabbix

Apache License 2.0
16 stars 21 forks source link

Ajust a create_host.yaml and create_host.py #59

Open lucasfontini opened 1 year ago

lucasfontini commented 1 year ago

When we try to create a workflow and insert this action, if you need to put a variable like <% ctx.var_name %> or {{ ctx.var_name }} an error occured to interpret this var, thats because of a type of field ipadress expect to receive an array. after change i was able to run my workflow property

namachieli commented 1 year ago

Hi, Thank you for the PR. I will take a look at this when I have some time. It looks like checks are failing so I also need to review that as well.

namachieli commented 9 months ago

My apologies for the delay on this.

I took a look and I think that it does need to remain as an array, since multiple IPs can be passed. I think the correct course of action to fix your workflow is to wrap the singular IP into a list: [ "{{ ctx.var_name }}" ]

Please give this a try and see if it resolves your issue. Changing this from an array to a string will break many other's workflows that do utilize an array of IPs.