make logger in vping a local variable 57/22457/1
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 26 Sep 2016 16:41:11 +0000 (00:41 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 26 Sep 2016 16:41:11 +0000 (00:41 +0800)
JIRA: FUNCTEST-493

Change-Id: I9f0c91b3fdbfb62c277b2c452ec124f67b21c653
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
testcases/OpenStack/vPing/vping.py

index 08579e1..90f6645 100755 (executable)
@@ -33,9 +33,6 @@ parser.add_argument("-m", "--mode", default='ssh',
 
 args = parser.parse_args()
 
-""" logging declaration """
-logger = None
-
 
 def main():
     if args.mode == 'ssh':
@@ -43,7 +40,6 @@ def main():
     else:
         case = 'vping_userdata'
 
-    global logger
     logger = ft_logger.Logger(case).getLogger()
 
     util.init(logger)