Skip to content

Commit 6058811

Browse files
committed
fix F841 unused-variable
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent 2ab9e71 commit 6058811

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/storage/glusterfs/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def teardown_for_host(h):
105105
try:
106106
# Volume might already be stopped if failure happened on delete
107107
h.ssh(['gluster', '--mode=script', 'volume', 'stop', 'vol0'])
108-
except Exception as e:
108+
except Exception:
109109
pass
110110

111111
h.ssh(['gluster', '--mode=script', 'volume', 'delete', 'vol0'])

tests/storage/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def try_to_create_sr_with_missing_device(sr_type, label, host):
66
try:
7-
sr = host.sr_create(sr_type, label, {}, verify=True)
7+
host.sr_create(sr_type, label, {}, verify=True)
88
except SSHCommandFailed as e:
99
assert e.stdout == (
1010
'Error code: SR_BACKEND_FAILURE_90\nError parameters: , '

0 commit comments

Comments
 (0)