diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-05 13:21:59 +0100 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2020-03-05 15:27:02 +0000 |
commit | 23f22e8e8ca50c862d1cece31a0a87050685cdd7 (patch) | |
tree | c2b8c3b79ecc4efeb84e5ccd1a5e86f5addd7fa5 /test/vcpe/vcpe.py | |
parent | 37fe1c2e88838760a733fbf1129067685ad7a6ea (diff) |
Fix Python linting issues in Python scripts
Fixed pylint issues for categories len-as-condition, using-constant-test,
undefined-variable and reimported.
Change-Id: Idad710958c3ca0ac6da78fb4709da03e5f079b34
Issue-ID: INT-1427
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/vcpe/vcpe.py')
-rwxr-xr-x | test/vcpe/vcpe.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/vcpe/vcpe.py b/test/vcpe/vcpe.py index f6c85ec53..e6038e719 100755 --- a/test/vcpe/vcpe.py +++ b/test/vcpe/vcpe.py @@ -68,7 +68,7 @@ def create_one_service(vcpecommon, csar_file, vnf_template_file, preload_dict, s def deploy_brg_only(): - logger = logging.getLogger(__name__) + logger = logging.getLogger(__name__) # pylint: disable=W0612 vcpecommon = VcpeCommon(cfg_file=args.config) preload_dict = vcpecommon.load_preload_data() @@ -174,7 +174,7 @@ def deploy_custom_service(): # clean up host_dic = {k: vcpecommon.hosts[k] for k in nodes} - if False: + if False: # pylint: disable=W0125 if not vcpecommon.delete_vxlan_interfaces(host_dic): sys.exit(1) custom_service.del_all_vgw_stacks(vcpecommon.vgw_name_keyword) @@ -215,7 +215,7 @@ def closed_loop(lossrate=0): def init_so_sdnc(): - logger = logging.getLogger('__name__') + logger = logging.getLogger('__name__') # pylint: disable=W0612 vcpecommon = VcpeCommon(cfg_file=args.config) config_sdnc_so.insert_sdnc_ip_pool(vcpecommon) config_sdnc_so.insert_customer_service_to_so(vcpecommon) @@ -234,7 +234,7 @@ def init(): def init_sdc(vcpecommon): - sdc = sdcutils.SdcUtils(vcpecommon) + sdc = sdcutils.SdcUtils(vcpecommon) # pylint: disable=W0612 # default SDC creates BRG - remove this in frankfurt #sdc.create_allotted_resource_subcategory('BRG') @@ -245,7 +245,7 @@ def download_vcpe_service_templates(vcpecommon): def tmp_sniro(): - logger = logging.getLogger(__name__) + logger = logging.getLogger(__name__) # pylint: disable=W0612 vcpecommon = VcpeCommon(cfg_file=args.config) |