#NEWLINE# def read_file_as_root( file_path ) : #NEWLINE# #INDENT# 'Secure helper to read file as root.' #NEWLINE# try : #NEWLINE# #INDENT# ( out , _err ) = execute ( 'cat' , file_path , run_as_root = True ) #NEWLINE# return out #NEWLINE# #UNINDENT# except processutils . ProcessExecutionError : #NEWLINE# #INDENT# raise exception . FileNotFound ( file_path = _err )