diff options
author | George Paraskevopoulos <geopar@intracom-telecom.com> | 2017-03-24 10:52:28 +0200 |
---|---|---|
committer | Brady Johnson <brady.allen.johnson@ericsson.com> | 2017-03-31 13:57:22 +0000 |
commit | 54ac61161108b037c1ccb3dca9cd2640f46b78b9 (patch) | |
tree | e105be3c7751a95e5780c153eae3a77305836312 | |
parent | 979951f484dbb1126356d03abf13f93082f2646b (diff) |
Fix checking for optional cmd line args in cleanupdanube.2.0danube.1.RC1danube.1.0
Change-Id: I5305e7c6426e0a563499f0aeefd910ce03e5ceae
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
(cherry picked from commit 6d6d321145befb9f823a9d8af40e5dce83f0dbc7)
-rw-r--r-- | sfc/lib/cleanup.py | 2 |
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() |