def _restore_plugin_configs(config, renewalparams):
 if (renewalparams['authenticator'] == 'webroot'):
  _restore_webroot_config(config, renewalparams)
  plugin_prefixes = []
 else:
  plugin_prefixes = [renewalparams['authenticator']]
 if (renewalparams.get('installer', None) is not None):
  plugin_prefixes.append(renewalparams['installer'])
 for plugin_prefix in set(plugin_prefixes):
  plugin_prefix = plugin_prefix.replace('-', '_')
  for (config_item, config_value) in six.iteritems(renewalparams):
   if (config_item.startswith((plugin_prefix + '_')) and (not cli.set_by_cli(config_item))):
    if (config_value in ('None', 'True', 'False')):
     setattr(config.namespace, config_item, eval(config_value))
    else:
     cast = cli.argparse_type(config_item)
     setattr(config.namespace, config_item, cast(config_value))

def _restore_plugin_configs ( config , renewalparams ) : if ( renewalparams [ 'authenticator' ] == 'webroot' ) : _restore_webroot_config ( config , renewalparams ) plugin_prefixes = [ ] else : plugin_prefixes = [ renewalparams [ 'authenticator' ] ] if ( renewalparams . get ( 'installer' , None ) is not None ) : plugin_prefixes . append ( renewalparams [ 'installer' ] ) for plugin_prefix in set ( plugin_prefixes ) : plugin_prefix = plugin_prefix . replace ( '-' , '_' ) for ( config_item , config_value ) in six . iteritems ( renewalparams ) : if ( config_item . startswith ( ( plugin_prefix + '_' ) ) and ( not cli . set_by_cli ( config_item ) ) ) : if ( config_value in ( 'None' , 'True' , 'False' ) ) : setattr ( config . namespace , config_item , eval ( config_value ) ) else : cast = cli . argparse_type ( config_item ) setattr ( config . namespace , config_item , cast ( config_value ) )
sets plugin specific values in config from renewalparams .