[node-patches] Change in ovirt-node[master]: Contracting the calls to persist and unpersist functions
tlitovsk at redhat.com
tlitovsk at redhat.com
Mon Dec 1 13:16:26 UTC 2014
Anatoly Litovsky has uploaded a new change for review.
Change subject: Contracting the calls to persist and unpersist functions
......................................................................
Contracting the calls to persist and unpersist functions
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1154356
Change-Id: Icd6a0010e4ffdfd92b83506f1809ff54f5f40e10
Signed-off-by: Tolik Litovsky <tlitovsk at redhat.com>
---
M src/ovirt/node/utils/fs/__init__.py
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/49/35749/1
diff --git a/src/ovirt/node/utils/fs/__init__.py b/src/ovirt/node/utils/fs/__init__.py
index d03a1b3..5cb737a 100644
--- a/src/ovirt/node/utils/fs/__init__.py
+++ b/src/ovirt/node/utils/fs/__init__.py
@@ -411,6 +411,10 @@
# TODO: Abort if it is stateless
if not self.is_enabled():
return
+
+ if path is None:
+ return
+
abspath = os.path.abspath(path)
if os.path.exists(abspath):
# Check first for symlinks as os.path file type detection follows
@@ -557,6 +561,10 @@
"""
if not self.is_enabled():
return
+
+ if path is None :
+ return
+
abspath = os.path.abspath(path)
if os.path.exists(abspath):
# Check first for symlinks as os.path file type detection follows
--
To view, visit http://gerrit.ovirt.org/35749
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd6a0010e4ffdfd92b83506f1809ff54f5f40e10
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Anatoly Litovsky <tlitovsk at redhat.com>
More information about the node-patches
mailing list