def _get_md5(name, path, run_func):
 output = run_func(name, 'md5sum {0}'.format(pipes.quote(path)), ignore_retcode=True)['stdout']
 try:
  return output.split()[0]
 except IndexError:
  return None

def _get_md5 ( name , path , run_func ) : output = run_func ( name , 'md5sum {0}' . format ( pipes . quote ( path ) ) , ignore_retcode = True ) [ 'stdout' ] try : return output . split ( ) [ 0 ] except IndexError : return None
get the md5 checksum of a file from a container .