Move the version detection code into a plugin because it does not belong in connection. Create a new discoverable plugin that looks at the auth_url and makes a best guess if it should use v2 or v3 auth. The plugin also now accepts access_info so a cached version of the authorization can be reproduced without hitting keystone. Change-Id: Ia5d32457c90716627a75be2c99267c4ed7903197
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
[metadata]
 | 
						|
name = python-openstacksdk
 | 
						|
summary = OpenStack Boilerplate contains all the boilerplate you need to create an OpenStack package.
 | 
						|
description-file =
 | 
						|
    README.rst
 | 
						|
author = OpenStack
 | 
						|
author-email = openstack-dev@lists.openstack.org
 | 
						|
home-page = http://www.openstack.org/
 | 
						|
classifier =
 | 
						|
    Environment :: OpenStack
 | 
						|
    Intended Audience :: Information Technology
 | 
						|
    Intended Audience :: System Administrators
 | 
						|
    License :: OSI Approved :: Apache Software License
 | 
						|
    Operating System :: POSIX :: Linux
 | 
						|
    Programming Language :: Python
 | 
						|
    Programming Language :: Python :: 2
 | 
						|
    Programming Language :: Python :: 2.7
 | 
						|
    Programming Language :: Python :: 2.6
 | 
						|
    Programming Language :: Python :: 3
 | 
						|
    Programming Language :: Python :: 3.3
 | 
						|
 | 
						|
[files]
 | 
						|
packages =
 | 
						|
    openstack
 | 
						|
 | 
						|
[build_sphinx]
 | 
						|
source-dir = doc/source
 | 
						|
build-dir = doc/build
 | 
						|
all_files = 1
 | 
						|
 | 
						|
[upload_sphinx]
 | 
						|
upload-dir = doc/build/html
 | 
						|
 | 
						|
[compile_catalog]
 | 
						|
directory = openstack/locale
 | 
						|
domain = python-openstacksdk
 | 
						|
 | 
						|
[update_catalog]
 | 
						|
domain = python-openstacksdk
 | 
						|
output_dir = openstack/locale
 | 
						|
input_file = openstack/locale/python-openstacksdk.pot
 | 
						|
 | 
						|
[extract_messages]
 | 
						|
keywords = _ gettext ngettext l_ lazy_gettext
 | 
						|
mapping_file = babel.cfg
 | 
						|
output_file = openstack/locale/python-openstacksdk.pot
 | 
						|
 | 
						|
[wheel]
 | 
						|
universal = 1
 | 
						|
 | 
						|
[entry_points]
 | 
						|
openstack.auth.plugin =
 | 
						|
    identity_v2 = openstack.auth.identity.v2:Auth
 | 
						|
    identity_v3 = openstack.auth.identity.v3:Auth
 | 
						|
    identity = openstack.auth.identity.discoverable:Auth
 |