File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ def _clean_scsi_debug(self):
7777 try :
7878 device = self .scsi_debug_dev .split ('/' )[- 1 ]
7979 if os .path .exists ('/sys/block/' + device ):
80- self . write_file ('/sys/block/%s/device/delete' % device , '1' )
80+ write_file ('/sys/block/%s/device/delete' % device , '1' )
8181 while os .path .exists (device ):
8282 time .sleep (0.1 )
83- self . run_command ('modprobe -r scsi_debug' )
83+ run_command ('modprobe -r scsi_debug' )
8484 except :
8585 pass
8686
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ def _clean_scsi_debug(self):
7676 try :
7777 device = self .scsi_debug_dev .split ('/' )[- 1 ]
7878 if os .path .exists ('/sys/block/' + device ):
79- self . write_file ('/sys/block/%s/device/delete' % device , '1' )
79+ write_file ('/sys/block/%s/device/delete' % device , '1' )
8080 while os .path .exists (device ):
8181 time .sleep (0.1 )
82- self . run_command ('modprobe -r scsi_debug' )
82+ run_command ('modprobe -r scsi_debug' )
8383 except :
8484 pass
8585
You can’t perform that action at this time.
0 commit comments