From fbbdbece6e69adeba811496af511e278881bdc79 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Wed, 25 Sep 2019 16:37:05 +0200 Subject: Fix hashbang in vCPE Python scripts Change-Id: Id2b7ec151e1a006a5a85b8544e478fd9cf282715 Signed-off-by: Bartek Grzybowski Issue-ID: TEST-220 --- test/vcpe/cleanvGMUX.py | 2 +- test/vcpe/config_sdnc_so.py | 2 +- test/vcpe/csar_parser.py | 3 ++- test/vcpe/get_info.py | 2 +- test/vcpe/healthcheck-k8s.py | 2 +- test/vcpe/loop.py | 2 +- test/vcpe/preload.py | 2 +- test/vcpe/sdcutils.py | 2 +- test/vcpe/soutils.py | 2 +- test/vcpe/vcpe.py | 5 ++--- test/vcpe/vcpe_custom_service.py | 2 +- test/vcpe/vcpecommon.py | 2 ++ 12 files changed, 15 insertions(+), 13 deletions(-) diff --git a/test/vcpe/cleanvGMUX.py b/test/vcpe/cleanvGMUX.py index 8b2751f45..f5269532e 100755 --- a/test/vcpe/cleanvGMUX.py +++ b/test/vcpe/cleanvGMUX.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import sys import logging diff --git a/test/vcpe/config_sdnc_so.py b/test/vcpe/config_sdnc_so.py index e9d642ad1..46d4c1c4c 100755 --- a/test/vcpe/config_sdnc_so.py +++ b/test/vcpe/config_sdnc_so.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import logging from vcpecommon import * diff --git a/test/vcpe/csar_parser.py b/test/vcpe/csar_parser.py index f101364d5..7046070e5 100755 --- a/test/vcpe/csar_parser.py +++ b/test/vcpe/csar_parser.py @@ -1,4 +1,5 @@ -#! /usr/bin/python +#!/usr/bin/env python + import os import zipfile import shutil diff --git a/test/vcpe/get_info.py b/test/vcpe/get_info.py index 5b0c6879b..2d52a07b7 100755 --- a/test/vcpe/get_info.py +++ b/test/vcpe/get_info.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import time import logging diff --git a/test/vcpe/healthcheck-k8s.py b/test/vcpe/healthcheck-k8s.py index 67a1981d2..241603130 100755 --- a/test/vcpe/healthcheck-k8s.py +++ b/test/vcpe/healthcheck-k8s.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import argparse import json diff --git a/test/vcpe/loop.py b/test/vcpe/loop.py index d0243960e..3dc1948f8 100755 --- a/test/vcpe/loop.py +++ b/test/vcpe/loop.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import time import logging diff --git a/test/vcpe/preload.py b/test/vcpe/preload.py index f4aafbe8e..7a3b9aa04 100755 --- a/test/vcpe/preload.py +++ b/test/vcpe/preload.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import requests import json diff --git a/test/vcpe/sdcutils.py b/test/vcpe/sdcutils.py index 2cf2a642d..a6f6a507b 100755 --- a/test/vcpe/sdcutils.py +++ b/test/vcpe/sdcutils.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import sys import logging diff --git a/test/vcpe/soutils.py b/test/vcpe/soutils.py index 734b793e0..7ab429099 100755 --- a/test/vcpe/soutils.py +++ b/test/vcpe/soutils.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import sys import logging diff --git a/test/vcpe/vcpe.py b/test/vcpe/vcpe.py index dd286bd30..49fc0e488 100755 --- a/test/vcpe/vcpe.py +++ b/test/vcpe/vcpe.py @@ -1,8 +1,7 @@ -#! /usr/bin/python +#!/usr/bin/env python import logging -logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(name)s.%(funcName)s(): %(message)s') -#logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s %(name)s.%(funcName)s(): %(message)s') +logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s %(name)s.%(funcName)s(): %(message)s') import sys from vcpecommon import * diff --git a/test/vcpe/vcpe_custom_service.py b/test/vcpe/vcpe_custom_service.py index 36012f7b0..e2681fd11 100755 --- a/test/vcpe/vcpe_custom_service.py +++ b/test/vcpe/vcpe_custom_service.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python import os import requests diff --git a/test/vcpe/vcpecommon.py b/test/vcpe/vcpecommon.py index 78085fc1f..1f1c8289a 100755 --- a/test/vcpe/vcpecommon.py +++ b/test/vcpe/vcpecommon.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import json import logging import os -- cgit 1.2.3-korg