From 86f976976ec5743fa1dfee2dcc5b67f11a3b1066 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Mon, 10 Oct 2011 10:01:28 +0200 Subject: [PATCH] bugfix: use absolute path when accessing file system Signed-off-by: Steven Armstrong --- lib/cdist/core/object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cdist/core/object.py b/lib/cdist/core/object.py index 96c6076a..76e8faa1 100644 --- a/lib/cdist/core/object.py +++ b/lib/cdist/core/object.py @@ -98,7 +98,7 @@ class Object(object): @property def requirements(self): if not self.__requirements: - self.__requirements = cdist.core.property.FileList(os.path.join(self.path, "require")) + self.__requirements = cdist.core.property.FileList(os.path.join(self.absolute_path, "require")) return self.__requirements @requirements.setter @@ -106,7 +106,7 @@ class Object(object): if isinstance(value, cdist.core.property.FileList): self.__requirements = value else: - self.__requirements = cdist.core.property.FileList(os.path.join(self.path, "require"), value) + self.__requirements = cdist.core.property.FileList(os.path.join(self.absolute_path, "require"), value) ### /requirements