aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()