def _find_volume(name):
 docker_volumes = __salt__['dockerng.volumes']()['Volumes']
 if docker_volumes:
  volumes = [v for v in docker_volumes if (v['Name'] == name)]
  if volumes:
   return volumes[0]
 return None

def _find_volume ( name ) : docker_volumes = __salt__ [ 'dockerng.volumes' ] ( ) [ 'Volumes' ] if docker_volumes : volumes = [ v for v in docker_volumes if ( v [ 'Name' ] == name ) ] if volumes : return volumes [ 0 ] return None
find volume by name on minion .