gP*Dz g0ddlZddZdS)NFcg}||||tj|tjtjd5}|\}}|j}dddn #1swxYwY|r)|||fS||fS)ac Executes supplied utility with supplied parameters :param util_path: string with path to callable utility :param params: utility parameters :param stderr: trigger to return stderr or not :return: Cortege (ret_code, cagefsctl_stdout) if stderr is False Cortege (ret_code, cagefsctl_stdout, cagefsctl_stderr) otherwise T)stdoutstderrtextN)appendextend subprocessPopenPIPE communicate returncodestrip) util_pathparamsrargsprocouterrretcodes py/cllimits/lib/__init__.py exec_utilityr s DKK KK        " ##%%S/"""""""""""""""1 SYY[[00 CIIKK sBB B)F)r rrrs1      r