aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2017-03-24 10:52:28 +0200
committerBrady Johnson <brady.allen.johnson@ericsson.com>2017-03-31 13:54:19 +0000
commit6d6d321145befb9f823a9d8af40e5dce83f0dbc7 (patch)
treed9d5beb87dec38d042492628eecd6b8b00dcad28
parentfe0d888cd188bbe3b91b731f5acb526df81ffe72 (diff)
Fix checking for optional cmd line args in cleanup
Change-Id: I5305e7c6426e0a563499f0aeefd910ce03e5ceae Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
-rw-r--r--sfc/lib/cleanup.py2
1 files changed, 1 insertions, 1 deletions
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()