Repository URL to install this package:
Version:
4.2.29-4.2 ▾
|
python3-dmapi
/
usr
/
lib
/
python3.6
/
site-packages
/
dmapi
/
__pycache__
/
service_auth.cpython-36.opt-1.pyc
|
---|
3 ÿna ã @ sV d dl mZ d dl mZ d dlmZ d dlZej j Z ejeZ dadd Zdd ZdS ) é )Úloading)Ú service_token)ÚlogNc C s da dS )z For async unit test consistency.N)Ú _SERVICE_AUTH© r r ú"/usr/lib/python3.6/service_auth.pyÚ reset_globals s r c C sP | j }tjjrLts>tjttjj j datd kr>tjd |S t j |tdS |S )N)ÚgroupzQUnable to load auth from [service_user] configuration. Ensure "auth_type" is set.)Ú user_authZservice_auth)Úget_auth_pluginÚCONFZservice_userZsend_service_user_tokenr Ú ks_loadingZload_auth_from_conf_optionsÚdmapiÚconfr ZSERVICE_USER_GROUPÚLOGZwarningZServiceTokenAuthWrapper)Úcontextr r r r r s r )Z keystoneauth1r r r Zoslo_logr ZloggingZ dmapi.confr r r Z getLoggerÚ__name__r r r r r r r r Ú<module> s