"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "manila/api/v1/shares.py" between
manila-8.1.3.tar.gz and manila-8.1.4.tar.gz

About: OpenStack Manila provides “Shared Filesystems as a service”.
The "Stein" series (maintained release).

shares.py  (manila-8.1.3):shares.py  (manila-8.1.4)
skipping to change at line 359 skipping to change at line 359
share_type = None share_type = None
if req_share_type: if req_share_type:
try: try:
if not uuidutils.is_uuid_like(req_share_type): if not uuidutils.is_uuid_like(req_share_type):
share_type = share_types.get_share_type_by_name( share_type = share_types.get_share_type_by_name(
context, req_share_type) context, req_share_type)
else: else:
share_type = share_types.get_share_type( share_type = share_types.get_share_type(
context, req_share_type) context, req_share_type)
except exception.ShareTypeNotFound: except (exception.ShareTypeNotFound,
exception.ShareTypeNotFoundByName):
msg = _("Share type not found.") msg = _("Share type not found.")
raise exc.HTTPNotFound(explanation=msg) raise exc.HTTPNotFound(explanation=msg)
elif not snapshot: elif not snapshot:
def_share_type = share_types.get_default_share_type() def_share_type = share_types.get_default_share_type()
if def_share_type: if def_share_type:
share_type = def_share_type share_type = def_share_type
# Only use in create share feature. Create share from snapshot # Only use in create share feature. Create share from snapshot
# and create share with share group features not # and create share with share group features not
# need this check. # need this check.
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

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