/usr/lib/python2.6/site-packages/openstack
Edit: /usr/lib/python2.6/site-packages/openstack/session.pyc (4296B)
Ñò
5
Wc @ s© d Z d d k Z d d k l Z d d k l Z d d k Z d d k l Z d d k l Z d e i
Z e i d ƒ Z
d „ Z d „ Z d
e i f d „ ƒ YZ d S( s©
The :class:`~openstack.session.Session` overrides
:class:`~keystoneauth1.session.Session` to provide end point filtering and
mapping KSA exceptions to SDK exceptions.
iÿÿÿÿN( t
exceptions( t session( t parses openstacksdk/%ss
/v\d[\d.]*c
C sÒ t i | ƒ } | i } t i | ƒ } | p! | i d | i d | i ƒ S| i ƒ \ } } | | } d | i | | d | !ƒ } | | o | | i d ƒ n d } | i d | i | | | } | S( Ns ://t /i t (
R t urlparset patht VERSION_PATTERNt searcht schemet netloct get_patht spant rstrip(
t filtt urlt resultR t vstrt startt endt prefixt versiont postfix( ( s7 /tmp/pip-build-wCUybK/openstacksdk/openstack/session.pyt parse_url! s !
% c s ‡ f d † } | S( Nc s y ˆ | | Ž SWn t i j
o¿ } | i d j oU t i d | i d | i d | i d | i d | i d | i
d | i d | ƒ ‚ qt i d | i d | i d | i d | i d | i d | i
d | i d | ƒ ‚ n4 t i j
o$ } t i
d | i d | ƒ ‚ n Xd S(
Ni” t messaget detailst responset
request_idR t methodt http_statust cause( t _exceptionst HttpErrorR R t NotFoundExceptionR R R R R R t
HttpExceptiont ClientExceptiont SDKException( t argst kwargst e( t func( s7 /tmp/pip-build-wCUybK/openstacksdk/openstack/session.pyt map_exceptions_wrapper0 s ( ( R( R) ( ( R( s7 /tmp/pip-build-wCUybK/openstacksdk/openstack/session.pyt map_exceptions/ s t Sessionc B s2 e Z d d „ Z d d d „ Z e d „ ƒ Z RS( c K sY | d j o d | t f | _ n
t | _ t t | ƒ i d | i | | | _ d S( s6 Create a new Keystone auth session with a profile.
:param profile: If the user has any special profiles such as the
service name, region, version or interface, they may be provided
in the profile object. If no profiles are provided, the
services that appear first in the service catalog will be used.
:param user_agent: A User-Agent header string to use for the
request. If not provided, a default of
:attr:`~openstack.session.DEFAULT_USER_AGENT`
is used, which contains the openstacksdk version
When a non-None value is passed, it will be
prepended to the default.
:type profile: :class:`~openstack.profile.Profile`
s %s %st
user_agentN( t Nonet DEFAULT_USER_AGENTR, t superR+ t __init__t profile( t selfR1 R, R&