[node-patches] Change in ovirt-node[ovirt-3.6]: fs: Use the abspath to check persistence

fabiand at redhat.com fabiand at redhat.com
Tue Sep 15 10:53:08 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: fs: Use the abspath to check persistence
......................................................................

fs: Use the abspath to check persistence

Previously not the full path was used to check if a file was persisted, this is incorrect.
Now the abs. path is used to check if a file got persisted.

Change-Id: I35d7f5d8d52cd0eae411a860dbb228c5b8c8e98b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1259007
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/fs/__init__.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/61/46161/1

diff --git a/src/ovirt/node/utils/fs/__init__.py b/src/ovirt/node/utils/fs/__init__.py
index 3e19f2a..dcf312c 100644
--- a/src/ovirt/node/utils/fs/__init__.py
+++ b/src/ovirt/node/utils/fs/__init__.py
@@ -682,6 +682,7 @@
     def exists(self, filename):
         """Check if the given file is persisted
         """
+        filename = os.path.abspath(filename)
         persisted_path = self._config_path(filename)
 
         if not os.path.exists(persisted_path) or \


-- 
To view, visit https://gerrit.ovirt.org/46161
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I35d7f5d8d52cd0eae411a860dbb228c5b8c8e98b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.6
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list