"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "glance/common/utils.py" between
glance-20.0.0.tar.gz and glance-20.0.1.tar.gz

About: OpenStack Glance (Core Service: Image Service) stores and retrieves virtual machine disk images. OpenStack Compute makes use of this during instance provisioning.
The "Ussuri" series (latest release).

utils.py  (glance-20.0.0):utils.py  (glance-20.0.1)
skipping to change at line 651 skipping to change at line 651
return value == threshold return value == threshold
msg = _("Unable to filter on a unknown operator.") msg = _("Unable to filter on a unknown operator.")
raise exception.InvalidFilterOperatorValue(msg) raise exception.InvalidFilterOperatorValue(msg)
def _get_available_stores(): def _get_available_stores():
available_stores = CONF.enabled_backends available_stores = CONF.enabled_backends
stores = [] stores = []
# Remove reserved stores from the available stores list # Remove reserved stores from the available stores list
for store in available_stores: for store in available_stores:
# NOTE (abhishekk): http store is readonly and should be
# excluded from the list.
if available_stores[store] == 'http':
continue
if store not in wsgi.RESERVED_STORES: if store not in wsgi.RESERVED_STORES:
stores.append(store) stores.append(store)
return stores return stores
def get_stores_from_request(req, body): def get_stores_from_request(req, body):
"""Processes a supplied request and extract stores from it """Processes a supplied request and extract stores from it
:param req: request to process :param req: request to process
:param body: request body :param body: request body
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

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