gP*Dz
g0 d dl Z ddZdS ) NFc g }| | | | t j |t j t j d 5 }| \ }}|j }ddd n# 1 swxY w Y |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
subprocessPopenPIPEcommunicate
returncodestrip) util_pathparamsr argsprocouterrretcodes py/cllimits/lib/__init__.pyexec_utilityr s DKK KK
"
##%%S/" " " " " " " " " " " " " " " 1 SYY[[00CIIKKs BBB)F)r r r