def plugins_cmd(config, plugins):
 logger.debug('Expected interfaces: %s', config.ifaces)
 ifaces = ([] if (config.ifaces is None) else config.ifaces)
 filtered = plugins.visible().ifaces(ifaces)
 logger.debug('Filtered plugins: %r', filtered)
 if ((not config.init) and (not config.prepare)):
  print(str(filtered))
  return
 filtered.init(config)
 verified = filtered.verify(ifaces)
 logger.debug('Verified plugins: %r', verified)
 if (not config.prepare):
  print(str(verified))
  return
 verified.prepare()
 available = verified.available()
 logger.debug('Prepared plugins: %s', available)
 print(str(available))

def plugins_cmd ( config , plugins ) : logger . debug ( 'Expected interfaces: %s' , config . ifaces ) ifaces = ( [ ] if ( config . ifaces is None ) else config . ifaces ) filtered = plugins . visible ( ) . ifaces ( ifaces ) logger . debug ( 'Filtered plugins: %r' , filtered ) if ( ( not config . init ) and ( not config . prepare ) ) : print ( str ( filtered ) ) return filtered . init ( config ) verified = filtered . verify ( ifaces ) logger . debug ( 'Verified plugins: %r' , verified ) if ( not config . prepare ) : print ( str ( verified ) ) return verified . prepare ( ) available = verified . available ( ) logger . debug ( 'Prepared plugins: %s' , available ) print ( str ( available ) )
list server software plugins .