Unsolved
This post is more than 5 years old
1 Message
0
608
May 26th, 2013 09:00
getInstances("SelectiveGroups") from a hook script returns nothing
Hi,
I have a hook script (sysname2udef-hook.asl) which is in charge to fill some user defined fields of the notification with additional values like location and group (this is the use case).
In order to get the list of groups I inserted the following code:
print("groupName=" . groupName);
groupList = getInstances(groupName);
print("groupList=" . groupList
But I get the following trace:
[May 22, 2013 11:51:42 AM GMT+02:00 +038ms] t@981464832 RFI-OI_NL-Driver-HyperNotif
ASL_MSG-*-ASLP-ics/sysname2udef-hook.asl: groupName=SelectiveGroup
[May 22, 2013 11:51:42 AM GMT+02:00 +038ms] t@981464832 RFI-OI_NL-Driver-HyperNotif
ASL_MSG-*-ASLP-ics/sysname2udef-hook.asl: groupList={ }
Why is groupList empty? It should contain many groups.
Before inserting this code in the hook script I had tested this code in a standalone script where it works perfectly. I remember I had for a while the same issue in a standalone script because I was forgetting to invoke the script with --server=RFI-SAM.
Can you please help me?
Thanks+BR,
Roberto