Yeela Kaplan has uploaded a new change for review.
Change subject: utils: change persistFile to persist
......................................................................
utils: change persistFile to persist
For compatibility reasons with pep8.
Change-Id: I54cabe8976713169755933958d183eefbd4fac88
Signed-off-by: Yeela Kaplan <ykaplan(a)redhat.com>
---
M lib/vdsm/utils.py
M vdsm/storage/multipath.py
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/73/34073/1
diff --git a/lib/vdsm/utils.py b/lib/vdsm/utils.py
index 9f10d37..5e49f25 100644
--- a/lib/vdsm/utils.py
+++ b/lib/vdsm/utils.py
@@ -55,9 +55,9 @@
try:
from ovirt.node.utils.fs import Config
- persistFile = Config().persist
+ persist = Config().persist
except ImportError:
- persistFile = lambda name: None
+ persist = lambda name: None
# Buffsize is 1K because I tested it on some use cases and 1K was fastest. If
diff --git a/vdsm/storage/multipath.py b/vdsm/storage/multipath.py
index 913bdf0..43b06f1 100644
--- a/vdsm/storage/multipath.py
+++ b/vdsm/storage/multipath.py
@@ -169,7 +169,7 @@
rc = misc.execCmd(cmd, sudo=True)[0]
if rc != 0:
raise se.MultipathSetupError()
- utils.persistFile(MPATH_CONF)
+ utils.persist(MPATH_CONF)
# Flush all unused multipath device maps
misc.execCmd([constants.EXT_MULTIPATH, "-F"], sudo=True)
--
To view, visit
http://gerrit.ovirt.org/34073
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I54cabe8976713169755933958d183eefbd4fac88
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykaplan(a)redhat.com>