original_docstring: Add cinder config to context.
  
      :param ctxt: Context dictionary
      :type ctxt: dict
      :param keystone_session: keystoneauth1.session.Session object
      :type: keystoneauth1.session.Session
      :returns: None
      :rtype: None
      
docstring: Add cinder config to context.
docstring_tokens: Add cinder config to context .
code: def add_cinder_config(ctxt, keystone_session):
      """Add cinder config to context.
  
      :param ctxt: Context dictionary
      :type ctxt: dict
      :param keystone_session: keystoneauth1.session.Session object
      :type: keystoneauth1.session.Session
      :returns: None
      :rtype: None
      """
      volume_types = ['volumev2', 'volumev3']
      keystone_client = openstack_utils.get_keystone_session_client(
          keystone_session)
      for volume_type in volume_types:
          service = keystone_client.services.list(type=volume_type)
          if service:
              ctxt['catalog_type'] = volume_type
              break
code_tokens: def add_cinder_config ( ctxt , keystone_session ) : volume_types = [ 'volumev2' , 'volumev3' ] keystone_client = openstack_utils . get_keystone_session_client ( keystone_session ) for volume_type in volume_types : service = keystone_client . services . list ( type = volume_type ) if service : ctxt [ 'catalog_type' ] = volume_type break
short_docstring: Add cinder config to context.
short_docstring_tokens: Add cinder config to context .
comment: """Add cinder config to context.
  
      :param ctxt: Context dictionary
      :type ctxt: dict
      :param keystone_session: keystoneauth1.session.Session object
      :type: keystoneauth1.session.Session
      :returns: None
      :rtype: None
      """