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 <[email protected]> --- 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/79/46179/1 diff --git a/src/ovirt/node/utils/fs/__init__.py b/src/ovirt/node/utils/fs/__init__.py index 1204776..5e98753 100644 --- a/src/ovirt/node/utils/fs/__init__.py +++ b/src/ovirt/node/utils/fs/__init__.py @@ -680,6 +680,7 @@ def exists(self, filename): """Check if the given file is persisted """ + filename = os.path.abspath(filename) if filename else filename return filename and File(self._config_path(filename)).exists() def is_enabled(self): -- To view, visit https://gerrit.ovirt.org/46179 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.5 Gerrit-Owner: Fabian Deutsch <[email protected]> Gerrit-Reviewer: Fabian Deutsch <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
