diff --git a/ovs_offload/ovs_offload_lnv.py b/ovs_offload/ovs_offload_lnv.py index 70e2856..a2be5a0 100755 --- a/ovs_offload/ovs_offload_lnv.py +++ b/ovs_offload/ovs_offload_lnv.py @@ -611,7 +611,7 @@ def build_args(): elif args.command == 'setup': - if host_password == '': + if len(host_password) == 0: print("Enter correct IPU Host SSH root password in config.yaml and retry") sys.exit() @@ -680,7 +680,7 @@ def build_args(): elif args.command == 'teardown': - if host_password == '': + if len(host_password) == 0: print("Enter correct IPU Host root password in config.yaml and retry") sys.exit() diff --git a/ovs_offload/ovs_offload_lnv2.py b/ovs_offload/ovs_offload_lnv2.py index b0307b8..56da35b 100755 --- a/ovs_offload/ovs_offload_lnv2.py +++ b/ovs_offload/ovs_offload_lnv2.py @@ -611,7 +611,7 @@ def build_args(): elif args.command == 'setup': - if host_password == '': + if len(host_password) == 0: print("Enter correct IPU Host SSH root password in config.yaml and retry") sys.exit() @@ -680,7 +680,7 @@ def build_args(): elif args.command == 'teardown': - if host_password == '': + if len(host_password) == 0: print("Enter correct IPU Host root password in config.yaml and retry") sys.exit() diff --git a/ovs_offload/ovs_offload_lnv3.py b/ovs_offload/ovs_offload_lnv3.py index 827f0e7..bdf455e 100755 --- a/ovs_offload/ovs_offload_lnv3.py +++ b/ovs_offload/ovs_offload_lnv3.py @@ -611,7 +611,7 @@ def build_args(): elif args.command == 'setup': - if host_password == '': + if len(host_password) == 0: print("Enter correct IPU Host SSH root password in config.yaml and retry") sys.exit() @@ -680,7 +680,7 @@ def build_args(): elif args.command == 'teardown': - if host_password == '': + if len(host_password) == 0: print("Enter correct IPU Host root password in config.yaml and retry") sys.exit()