ManageIQ / manageiq-automation_engine

Automation engine for ManageIQ
Apache License 2.0
11 stars 74 forks source link

Automate expression method broken in jansa and kasparov #476

Open phospi opened 3 years ago

phospi commented 3 years ago

Hi,

I was checking jansa with expression methods as described in the Cloudforms / ManageIQ book [1] with user input and couldn't get it to work. It looks like variable resolution is no longer working for expression methods. Or maybe the syntax changed.

Affected versions (or what I tested): jansa-2.20201027185742_b8d5deb jansa-3.20210118183104_77bdc30 kasparov-1.20210203001902_15acbea

Steps to reproduce: Follow the chapter "Expression methods" in the addendum [2]

Expected output: Expression Method should deliver a result based on variables.

Actual result: <None>

Additional info: It is pretty interesting to compare the logging output in automation.log in ivanchuk and in jansa of an expression method: Ivanchuck: INFO -- : Invoking [expression] method [/Expression/General/my_expression_check] with inputs [{"arg1"=>"value1", "arg2"=>"foo", "arg3"=>"bar"}]

Jansa/Kasparov: INFO -- : Invoking [expression] method [/Expression/General/my_expression_check] with inputs [{"arg1"=>"${/#dialog_my_field1}", "arg2"=>"${/#dialog_my_field2}", "arg3"=>"${/#dialog_my_field3}"}] ERROR -- : Expression method ends

If that's important I tested expression method with tags.

Kind Regards, phospi

Links

miq-bot commented 1 year ago

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.