diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-08-23 11:05:52 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-08-23 11:05:52 +0800 |
commit | 73053cd38fed875e3e5d64cabfb7fbfeb2839a80 (patch) | |
tree | 891c5c4e46dfec88f47326e461b50933c9679a3c /testcases/OpenStack/vPing/vping.py | |
parent | 43a98904445a7151b586f996ae5d0e858fa24b98 (diff) |
delete useless image_exists in vping
In rally, image_exists is used to decide whether the image
resource should be cleaned or not. But unlike rally,
image_exists in vping is only assigned but not never be actually used.
JIRA: FUNCTEST-426
Change-Id: Id2089dd2a9734ba957cc1c80d4dc31bc27907b0a
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testcases/OpenStack/vPing/vping.py')
-rwxr-xr-x | testcases/OpenStack/vPing/vping.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/testcases/OpenStack/vPing/vping.py b/testcases/OpenStack/vPing/vping.py index 039e7ec5..168ed4f8 100755 --- a/testcases/OpenStack/vPing/vping.py +++ b/testcases/OpenStack/vPing/vping.py @@ -23,8 +23,6 @@ import functest.utils.functest_logger as ft_logger import vping_util as util parser = argparse.ArgumentParser() -image_exists = False - parser.add_argument("-d", "--debug", help="Debug mode", action="store_true") parser.add_argument("-r", "--report", help="Create json result file", @@ -52,8 +50,7 @@ def main(): vmname_1 = util.get_vmname_1() vmname_2 = util.get_vmname_2() - global image_exists - image_exists, image_id = util.create_image() + image_id = util.create_image() flavor = util.get_flavor() |