14 Nov
2014
14 Nov
'14
9:26 a.m.
Travis Dimmig wrote:
I can’t figure out how to get modules to return with the codes I want them too.
Modules such as "sql" have fixed return codes. Policies are a bit different.
When execution enters the final “else” with the noop, why does the module still return “ok” ?
Because "ok" has a higher priority than "noop". You shouldn't by relying on *module* return codes from *policies*. "Unlang" isn't a programming language. Instead, put the results of the policies into an attribute, and check the attribute. Alan DeKok.