diff options
author | DR695H <dr695h@att.com> | 2019-05-01 18:52:33 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-05-01 18:53:14 -0400 |
commit | ae6fedd18ad51f175d6a2e2346f284a68b6e4967 (patch) | |
tree | 40cf730e4178000533b83ebffdf6abe04011ce06 /robotframework-onap/vcpeutils/SoUtils.py | |
parent | 308b44cc1e6b95df3051e5f7db94389696763cca (diff) |
support python 3
support python 3 in all files, also support python 2 however so
everything should continue to work
Change-Id: I4ace08d2bb0623c0fdc61f2fe39d2339817aa916
Issue-ID: TEST-141
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/vcpeutils/SoUtils.py')
-rwxr-xr-x | robotframework-onap/vcpeutils/SoUtils.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/robotframework-onap/vcpeutils/SoUtils.py b/robotframework-onap/vcpeutils/SoUtils.py index 1248613..c52006d 100755 --- a/robotframework-onap/vcpeutils/SoUtils.py +++ b/robotframework-onap/vcpeutils/SoUtils.py @@ -1,15 +1,10 @@ #! /usr/bin/python -import sys -import logging -import requests -import json -from datetime import datetime -#import progressbar import time -import csar_parser -import preload -from vcpecommon import * + +from .csar_parser import * +from .preload import * +from .vcpecommon import * from robot.api import logger @@ -212,7 +207,7 @@ class SoUtils: return {'requestDetails': req_details} def create_custom_service(self, csar_file, brg_mac, name_suffix=None): - parser = csar_parser.CsarParser() + parser = CsarParser() if not parser.parse_csar(csar_file): return False @@ -259,7 +254,7 @@ class SoUtils: self.tenant_id=tenant_id self.logger.info('\n----------------------------------------------------------------------------------') self.logger.info('Start to create entire service defined in csar: {0}'.format(csar_file)) - parser = csar_parser.CsarParser() + parser = CsarParser() self.logger.info('Parsing csar ...') if not parser.parse_csar(csar_file): self.logger.error('Cannot parse csar: {0}'.format(csar_file)) @@ -337,7 +332,7 @@ class SoUtils: # SDNC Preload - preloader = preload.Preload(self.vcpecommon) + preloader = Preload(self.vcpecommon) preloader.preload_vfmodule(vnf_template_file, svc_instance_id, parser.vnf_models[0], parser.vfmodule_models[0], preload_dict, name_suffix) |