diff options
author | 2017-02-21 17:28:23 +0000 | |
---|---|---|
committer | 2017-02-21 17:28:23 +0000 | |
commit | 22c1691bd56de2d8c82f7013ea7a16a8caa19a12 (patch) | |
tree | c98857431c2722755061048e086a6a33cbd11fea /sfc/lib/utils.py | |
parent | 32cc637c69580b18112e1e347830b6ee194b1b60 (diff) | |
parent | a14016690cea1fe6f39c5ab0cd0359534c8966e0 (diff) |
Merge "Get vnfd parameter file location from config.yaml"
Diffstat (limited to 'sfc/lib/utils.py')
-rw-r--r-- | sfc/lib/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py index c8641dd0..b4807cc2 100644 --- a/sfc/lib/utils.py +++ b/sfc/lib/utils.py @@ -78,10 +78,10 @@ def download_image(url, image_path): logger.info("Using old image") -def create_vnf_in_av_zone(tacker_client, vnf_name, vnfd_name, av_zone=None): - param_file = os.path.join(os.getcwd(), - 'vnfd-templates', - 'test-vnfd-default-params.yaml') +def create_vnf_in_av_zone( + tacker_client, vnf_name, vnfd_name, default_param_file, av_zone=None): + param_file = default_param_file + if av_zone is not None or av_zone != 'nova': param_file = os.path.join( '/tmp', |