#NEWLINE# def _image_uuid_from_href( self , image_href ) : #NEWLINE# #INDENT# if ( not image_href ) : #NEWLINE# #INDENT# msg = _ ( 'Invalid imageRef provided.' ) #NEWLINE# raise exc . HTTPBadRequest ( explanation = msg ) #NEWLINE# #UNINDENT# image_uuid = image_href . split ( '/' ) . pop ( ) #NEWLINE# if ( not uuidutils . is_uuid_like ( image_uuid ) ) : #NEWLINE# #INDENT# msg = _ ( 'Invalid imageRef provided.' ) #NEWLINE# raise exc . HTTPBadRequest ( explanation = msg ) #NEWLINE# #UNINDENT# return image_uuid