def cli_plugin_requests(config):
 req_inst = req_auth = config.configurator
 req_inst = set_configurator(req_inst, config.installer)
 req_auth = set_configurator(req_auth, config.authenticator)
 if config.nginx:
  req_inst = set_configurator(req_inst, 'nginx')
  req_auth = set_configurator(req_auth, 'nginx')
 if config.apache:
  req_inst = set_configurator(req_inst, 'apache')
  req_auth = set_configurator(req_auth, 'apache')
 if config.standalone:
  req_auth = set_configurator(req_auth, 'standalone')
 if config.webroot:
  req_auth = set_configurator(req_auth, 'webroot')
 if config.manual:
  req_auth = set_configurator(req_auth, 'manual')
 logger.debug('Requested authenticator %s and installer %s', req_auth, req_inst)
 return (req_auth, req_inst)

def cli_plugin_requests ( config ) : req_inst = req_auth = config . configurator req_inst = set_configurator ( req_inst , config . installer ) req_auth = set_configurator ( req_auth , config . authenticator ) if config . nginx : req_inst = set_configurator ( req_inst , 'nginx' ) req_auth = set_configurator ( req_auth , 'nginx' ) if config . apache : req_inst = set_configurator ( req_inst , 'apache' ) req_auth = set_configurator ( req_auth , 'apache' ) if config . standalone : req_auth = set_configurator ( req_auth , 'standalone' ) if config . webroot : req_auth = set_configurator ( req_auth , 'webroot' ) if config . manual : req_auth = set_configurator ( req_auth , 'manual' ) logger . debug ( 'Requested authenticator %s and installer %s' , req_auth , req_inst ) return ( req_auth , req_inst )
figure out which plugins the user requested with cli and config options :returns: :rtype: tuple .