From 6d6d321145befb9f823a9d8af40e5dce83f0dbc7 Mon Sep 17 00:00:00 2001 From: George Paraskevopoulos Date: Fri, 24 Mar 2017 10:52:28 +0200 Subject: Fix checking for optional cmd line args in cleanup Change-Id: I5305e7c6426e0a563499f0aeefd910ce03e5ceae Signed-off-by: George Paraskevopoulos --- sfc/lib/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfc/lib/cleanup.py b/sfc/lib/cleanup.py index 83eac3e6..8c1f0d09 100644 --- a/sfc/lib/cleanup.py +++ b/sfc/lib/cleanup.py @@ -114,7 +114,7 @@ def cleanup(odl_ip=None, odl_port=None): if __name__ == '__main__': - if sys.argv > 2: + if len(sys.argv) > 2: cleanup(sys.argv[1], sys.argv[2]) else: cleanup() -- cgit 1.2.3-korg