def _reconstitute(config, full_path):
 try:
  renewal_candidate = storage.RenewableCert(full_path, config)
 except (errors.CertStorageError, IOError) as exc:
  logger.warning(exc)
  logger.warning('Renewal configuration file %s is broken. Skipping.', full_path)
  logger.debug('Traceback was:\n%s', traceback.format_exc())
  return None
 if ('renewalparams' not in renewal_candidate.configuration):
  logger.warning('Renewal configuration file %s lacks renewalparams. Skipping.', full_path)
  return None
 renewalparams = renewal_candidate.configuration['renewalparams']
 if ('authenticator' not in renewalparams):
  logger.warning('Renewal configuration file %s does not specify an authenticator. Skipping.', full_path)
  return None
 try:
  restore_required_config_elements(config, renewalparams)
  _restore_plugin_configs(config, renewalparams)
 except (ValueError, errors.Error) as error:
  logger.warning('An error occurred while parsing %s. The error was %s. Skipping the file.', full_path, error.message)
  logger.debug('Traceback was:\n%s', traceback.format_exc())
  return None
 try:
  config.domains = [util.enforce_domain_sanity(d) for d in renewal_candidate.names()]
 except errors.ConfigurationError as error:
  logger.warning('Renewal configuration file %s references a cert that contains an invalid domain name. The problem was: %s. Skipping.', full_path, error)
  return None
 return renewal_candidate

def _reconstitute ( config , full_path ) : try : renewal_candidate = storage . RenewableCert ( full_path , config ) except ( errors . CertStorageError , IOError ) as exc : logger . warning ( exc ) logger . warning ( 'Renewal configuration file %s is broken. Skipping.' , full_path ) logger . debug ( 'Traceback was:\n%s' , traceback . format_exc ( ) ) return None if ( 'renewalparams' not in renewal_candidate . configuration ) : logger . warning ( 'Renewal configuration file %s lacks renewalparams. Skipping.' , full_path ) return None renewalparams = renewal_candidate . configuration [ 'renewalparams' ] if ( 'authenticator' not in renewalparams ) : logger . warning ( 'Renewal configuration file %s does not specify an authenticator. Skipping.' , full_path ) return None try : restore_required_config_elements ( config , renewalparams ) _restore_plugin_configs ( config , renewalparams ) except ( ValueError , errors . Error ) as error : logger . warning ( 'An error occurred while parsing %s. The error was %s. Skipping the file.' , full_path , error . message ) logger . debug ( 'Traceback was:\n%s' , traceback . format_exc ( ) ) return None try : config . domains = [ util . enforce_domain_sanity ( d ) for d in renewal_candidate . names ( ) ] except errors . ConfigurationError as error : logger . warning ( 'Renewal configuration file %s references a cert that contains an invalid domain name. The problem was: %s. Skipping.' , full_path , error ) return None return renewal_candidate
reconstitute an :class: .