On 05/09/12 11:29, Jesse Butler wrote:

This looks good to me, but one question. Is svcprop always returning lists 
delimited by backslashes now? If so, can you test _get_nameservers() as well? I 
think it might need the same treatment.

I wrote some code to parse svcprop output a long time ago in pkg(5). I won't claim its perfect, but it is well-tested:


http://src.opensolaris.org/source/xref/pkg/gate/src/modules/config.py#1637

Lines 1646-1679 should give you a nice dict structure of the output of svcprop.

Long-term, the plan is to switch to RAD of course.

-Shawn

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to