def convert_config_string_to_dict(config_string):
 resultant_dict = {}
 try:
  st = config_string.replace('=', ':')
  st = st.replace(' ', ', ')
  resultant_dict = ast.literal_eval(st)
 except Exception:
  LOG.warning(_LW('Error encountered translating config_string: %(config_string)s to dict'), {'config_string': config_string})
 return resultant_dict

def convert_config_string_to_dict ( config_string ) : resultant_dict = { } try : st = config_string . replace ( '=' , ':' ) st = st . replace ( ' ' , ', ' ) resultant_dict = ast . literal_eval ( st ) except Exception : LOG . warning ( _LW ( 'Error encountered translating config_string: %(config_string)s to dict' ) , { 'config_string' : config_string } ) return resultant_dict
convert config file replication string to a dict .