def lsof(name):
 sanitize_name = str(name)
 lsof_infos = __salt__['cmd.run'](('lsof -c ' + sanitize_name))
 ret = []
 ret.extend([sanitize_name, lsof_infos])
 return ret

def lsof ( name ) : sanitize_name = str ( name ) lsof_infos = __salt__ [ 'cmd.run' ] ( ( 'lsof -c ' + sanitize_name ) ) ret = [ ] ret . extend ( [ sanitize_name , lsof_infos ] ) return ret
retrieve the lsof informations of the given process name .