Skip to content

Commit

Permalink
Merge pull request #1625 from harihare/port_bounce
Browse files Browse the repository at this point in the history
Fixed local variable issue in port_bounce script
  • Loading branch information
narasimhan-v authored Apr 20, 2020
2 parents 9f32131 + 9460824 commit 1c27b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/disk/port_bounce.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def mpath_state_check(self, ports, state1, state2):
checking mpath disk status after disabling the switch port
'''
curr_path = ''
err_paths = []

def is_path_online():
path_stat = multipath.get_path_status(curr_path)
Expand All @@ -252,7 +253,6 @@ def is_path_online():

for port in ports:
paths = self.get_paths(self.dic[port])
err_paths = []
self.log.info("verify %s path status for port %s in %s",
state1, port, ports)
for path in paths:
Expand Down

0 comments on commit 1c27b4f

Please sign in to comment.