From Dan Kenigsberg <danken(a)redhat.com>:
Dan Kenigsberg has uploaded a new change for review.
Change subject: pylint: storage/fileSD: fix typo
......................................................................
pylint: storage/fileSD: fix typo
commit 166bda1 introduced a typo that is hereby fixed.
It's time we introduce static checkers to the project, to avoid similar
cases.
Change-Id: Ia441c59ca994a9d15836b165a1a56e67a5e12ca6
Bug-Url:
https://bugzilla.redhat.com/1317429
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/storage/fileSD.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/56/69356/1
diff --git a/vdsm/storage/fileSD.py b/vdsm/storage/fileSD.py
index e914426..091b867 100644
--- a/vdsm/storage/fileSD.py
+++ b/vdsm/storage/fileSD.py
@@ -753,7 +753,7 @@
try:
proc.truncateFile(path, size, METADATA_PERMISSIONS, creatExcl=True)
except OSError as e:
- if e.rrrno == errno.EEXIST:
+ if e.errno == errno.EEXIST:
self.log.info("Reusing external leases volume %s", path)
--
To view, visit
https://gerrit.ovirt.org/69356
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia441c59ca994a9d15836b165a1a56e67a5e12ca6
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-4.1
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>