Good afternoon,
I have been working with the new iRODS Python Rule Engine, available for iRODS 4.2 (unstable) and what I am currently trying to achieve is to call a user defined rule (test_rule, for instance) with parameters:
In my core.py, I have:
def test_rule(rule_args, callback):
callback.writeLine('serverLog', rule_args)
for arg in rule_args:
callback.writeLine('serverLog', arg)
When I run the following command:
$ irule test_rule *A=123 "null"
I got the following line on the server logs:
[TIMESTAMP] [PID] NOTICE: writeLine: inString = [] # This log entry refers to the first callback.writeLine call on my rule. It prints an empty rule_args list.
# No lines are printed for the rule_args elements.
From what I have seen, the problem appears to be the lack of mapping input args to python function. Am I doing something wrong? Does this problem really exist and needs to be fixed?
Regarding my environment, I am using Ubuntu 14.04 and iRODS unstable release 4.2 (from
unstable.irods.org).
Thanks!
Regards,
-Henrique