X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fpub%2Fvimapi%2Fadaptor.py;h=44153620ef3a654d4f2cf79e00a5bc74945fc133;hb=4a17e781eaae262bcaebeade4f8286aacfc808da;hp=2680ff9b46616dab499eb21f73dab0298dbca1bd;hpb=f115fb16d5b2ec75bf0ad30fe28cffeda722d574;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py index 2680ff9b..44153620 100644 --- a/lcm/lcm/pub/vimapi/adaptor.py +++ b/lcm/lcm/pub/vimapi/adaptor.py @@ -15,6 +15,7 @@ import logging import time import json +import os from lcm.pub.utils.values import ignore_case_get, set_opt_val from lcm.pub.msapi.aai import get_flavor_info @@ -369,7 +370,7 @@ def create_vm(vim_cache, res_cache, data, vm, do_notify, res_type): for artifact in vm["artifacts"]: if artifact["artifact_name"] == "sw_image": # TODO: after DM define - img_name = artifact["file"] + img_name = os.path.basename(artifact["file"]) break if not img_name: raise VimException("Undefined image(%s)" % vm["artifacts"], ERR_CODE)