Skip to content

Commit

Permalink
Address issues flagged by Bandit
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Foster <[email protected]>
  • Loading branch information
ffoulkes committed Sep 10, 2024
1 parent 53e59d5 commit 6afaac1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ovs_offload/ovs_offload_lnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions ovs_offload/ovs_offload_lnv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions ovs_offload/ovs_offload_lnv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 6afaac1

Please sign in to comment.