def list_items(queue, backend='sqlite'):
 queue_funcs = salt.loader.queues(__opts__)
 cmd = '{0}.list_items'.format(backend)
 if (cmd not in queue_funcs):
  raise SaltInvocationError('Function "{0}" is not available'.format(cmd))
 ret = queue_funcs[cmd](queue=queue)
 return ret

def list_items ( queue , backend = 'sqlite' ) : queue_funcs = salt . loader . queues ( __opts__ ) cmd = '{0}.list_items' . format ( backend ) if ( cmd not in queue_funcs ) : raise SaltInvocationError ( 'Function "{0}" is not available' . format ( cmd ) ) ret = queue_funcs [ cmd ] ( queue = queue ) return ret
list contents of a queue .