def volume_absent(name, driver=None):
 ret = {'name': name, 'changes': {}, 'result': False, 'comment': ''}
 volume = _find_volume(name)
 if (not volume):
  ret['result'] = True
  ret['comment'] = "Volume '{0}' already absent".format(name)
  return ret
 try:
  ret['changes']['removed'] = __salt__['dockerng.remove_volume'](name)
  ret['result'] = True
 except Exception as exc:
  ret['comment'] = "Failed to remove volume '{0}': {1}".format(name, exc)
 return ret

def volume_absent ( name , driver = None ) : ret = { 'name' : name , 'changes' : { } , 'result' : False , 'comment' : '' } volume = _find_volume ( name ) if ( not volume ) : ret [ 'result' ] = True ret [ 'comment' ] = "Volume '{0}' already absent" . format ( name ) return ret try : ret [ 'changes' ] [ 'removed' ] = __salt__ [ 'dockerng.remove_volume' ] ( name ) ret [ 'result' ] = True except Exception as exc : ret [ 'comment' ] = "Failed to remove volume '{0}': {1}" . format ( name , exc ) return ret
check that a block volume exists .