X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=nfvo.py;h=279eb073491718ed89d390698a48ce486510e130;hb=13ab2c4eff5e215ee054ef8ca9bde223672a0089;hp=0d60ff72373f09348e3eb59ffb70ee028dcde5bd;hpb=0c8def04e7d1519e0bc29be4c4c52ba495e71cc6;p=osm%2FRO.git diff --git a/nfvo.py b/nfvo.py index 0d60ff72..279eb073 100644 --- a/nfvo.py +++ b/nfvo.py @@ -296,9 +296,9 @@ def create_or_use_image(mydb, vims, image_dict, rollback_list, only_create_at_vi #logger.debug('>>>>>>>> Filter dict: %s', str(filter_dict)) vim_images = vim.get_image_list(filter_dict) if len(vim_images) > 1: - raise NfvoException("More than one candidate VIM image found for filter: " + str(filter_dict), HTTP_Conflict) + raise vimconn.vimconnException("More than one candidate VIM image found for filter: {}".format(str(filter_dict)), HTTP_Conflict) elif len(vim_images) == 0: - raise NfvoException("Image not found at VIM with filter: '%s'", str(filter_dict)) + raise vimconn.vimconnNotFoundException("Image not found at VIM with filter: '{}'".format(str(filter_dict))) else: image_vim_id = vim_images[0].id