%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/auth/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/auth/keystone.pyc

�
���^c@@s�dZddlmZmZmZy*ddlmZddlmZm	Z	Wne
k
r_nXd�Zd�Ze
dkr�iZedd�r�ed	�q�ed
�ndS(u]
Provide authentication using OpenStack Keystone

:depends:   - keystoneclient Python module
i(tabsolute_importtprint_functiontunicode_literals(tclient(tAuthorizationFailuretUnauthorizedcC@s%ytdSWntk
r dSXdS(uD
    Try and get the URL from the config, else return localhost
    ukeystone.auth_urluhttp://localhost:35357/v2.0N(t__opts__tKeyError(((s6/usr/lib/python2.7/site-packages/salt/auth/keystone.pytget_auth_urls
cC@sNy/tjd|d|dt��}|j�SWnttfk
rItSXdS(u
    Try and authenticate
    tusernametpasswordtauth_urlN(RtClientRtauthenticateRRtFalse(R	R
tkeystone((s6/usr/lib/python2.7/site-packages/salt/auth/keystone.pytauthsu__main__utestu
AuthenticateduFailed to authenticateN(t__doc__t
__future__RRRtkeystoneclient.v2_0Rtkeystoneclient.exceptionsRRtImportErrorRRt__name__Rtprint(((s6/usr/lib/python2.7/site-packages/salt/auth/keystone.pyt<module>s
	
	


Zerion Mini Shell 1.0