Closed pradnya-orchestral closed 3 years ago
@pradnya-orchestral You can also go into the MongoDB shell and run a query to compare the input parameters.
For example, I have a sample action/workflow that I use. Here's the input parameters on the 1st run.
"parameters" : {
"key" : "foobar",
"vm_name" : "earth"
},
Here's the input parameters on the re-run. I didn't make any changes to the input parameters on rerun.
"parameters" : {
"key" : "********",
"vm_name" : "earth",
"cpu_cores" : 1,
"memory_mb" : 1024
},
The input parameters of the 1st run should be exactly the same as the 2nd run. Note, that the key
is replaced with asterisks. Also, the default values are included now which are not needed since the backend will figure out the default.
To query mongoDB, do the following on your StackStorm system.
$ mongo
> use st2
> db.action_execution_d_b.find({"_id": ObjectId("<PUT_ACTION_EXECUTION_ID_HERE>")}).pretty()
Previously, As an user trying to Rerun action, secret parameters are set with asterisks. So, now I have cleared value of secret parameters while Rerun, If parameter is compulsory, error message will display to enter value for secret parameter. For other parameters which have default value, If user has not entered any value while creating action for those parameter, then in Rerun previously 'none' value goes from UI to backend and it gives error while submitting, now default value will be set while Rerun otherwise user entered value will be displayed. Here I have set default value in Rerun for integer field only.