def update_configuration(lineagename, archive_dir, target, cli_config):
 config_filename = renewal_filename_for_lineagename(cli_config, lineagename)
 temp_filename = (config_filename + '.new')
 if os.path.exists(temp_filename):
  os.unlink(temp_filename)
 values = relevant_values(vars(cli_config.namespace))
 write_renewal_config(config_filename, temp_filename, archive_dir, target, values)
 os.rename(temp_filename, config_filename)
 return configobj.ConfigObj(config_filename)

def update_configuration ( lineagename , archive_dir , target , cli_config ) : config_filename = renewal_filename_for_lineagename ( cli_config , lineagename ) temp_filename = ( config_filename + '.new' ) if os . path . exists ( temp_filename ) : os . unlink ( temp_filename ) values = relevant_values ( vars ( cli_config . namespace ) ) write_renewal_config ( config_filename , temp_filename , archive_dir , target , values ) os . rename ( temp_filename , config_filename ) return configobj . ConfigObj ( config_filename )
modifies lineagenames config to contain the specified values .