"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "monasca_log_api/policies/__init__.py" between
monasca-log-api-2.7.0.tar.gz and monasca-log-api-2.9.0.tar.gz

About: OpenStack Monasca Log API is a RESTful API server acting as gateway for logs collected from log-agents.
The "Stein" series (maintained release).

__init__.py  (monasca-log-api-2.7.0):__init__.py  (monasca-log-api-2.9.0)
skipping to change at line 38 skipping to change at line 38
def roles_list_to_check_str(roles_list): def roles_list_to_check_str(roles_list):
if roles_list: if roles_list:
converted_roles_list = ["role:" + role if role != '@' else role for role in roles_list] converted_roles_list = ["role:" + role if role != '@' else role for role in roles_list]
return ' or '.join(converted_roles_list) return ' or '.join(converted_roles_list)
else: else:
return None return None
role_middleware.register_opts(CONF) role_middleware.register_opts(CONF)
DEFAULT_AUTHORIZED_ROLES = roles_list_to_check_str(cfg.CONF.roles_middleware.def
ault_roles)
AGENT_AUTHORIZED_ROLES = roles_list_to_check_str(cfg.CONF.roles_middleware.agent
_roles)
DELEGATE_AUTHORIZED_ROLES = roles_list_to_check_str(cfg.CONF.roles_middleware.de
legate_roles)
CHECK_AUTHORIZED_ROLES = roles_list_to_check_str(cfg.CONF.roles_middleware.check
_roles)
def load_policy_modules(): def load_policy_modules():
"""Load all modules that contain policies. """Load all modules that contain policies.
Method iterates over modules of :py:mod:`monasca_events_api.policies` Method iterates over modules of :py:mod:`monasca_events_api.policies`
and imports only those that contain following methods: and imports only those that contain following methods:
- list_rules - list_rules
""" """
for modname in _list_module_names(): for modname in _list_module_names():
 End of changes. 1 change blocks. 
9 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)