title: How to describe configuration of topic kafka?
body: <p>I want to describe the configuration of one topic. I developed a script using confluent-kafka-python librairie (version 1.5.0) and my version of python is 2.7.
  My final goal is to be able to change the retention time to my topic (retention.ms), but for this I need to extract all configuration of my topic and change just what I want and leaving the others as they have been defined.</p>
  <p>My script:</p>
  <pre><code>def describe_topic(admin_client, topic):
  
  resources = [ConfigResource(confluent_kafka.admin.RESOURCE_TOPIC, topic)]
  fs = admin_client.describe_configs(resources)
  for resource, f in fs.items():
      remote_config = f.result()
      print(remote_config)
      return resource, remote_config
  </code></pre>
  <p>But I have this error :</p>
  <blockquote>
  <p>Error<br />
  File &quot;kafka.py&quot;, line 192, in describe_topic<br />
  resources = [ConfigResource(confluent_kafka.admin.RESOURCE_TOPIC, topic)]<br />
  File &quot;environment/mamba-6Od8R-HF-py2.7/lib/python2.7/site-packages/kafka/admin/config_resource.py&quot;, line 33, in <strong>init</strong><br />
  resource_type = ConfigResourceType[str(resource_type).upper()] # pylint: disable-msg=unsubscriptable-object<br />
  File &quot;/product/tedhdev/environment/mamba-6Od8R-HF-py2.7/lib/python2.7/site-packages/enum/<strong>init</strong>.py&quot;, line 394, in <strong>getitem</strong><br />
  return cls.<em>member_map</em>[name]<br />
  KeyError: '2'\</p>
  </blockquote>
  <p>Can someone help me?
  Thanks a lot</p>