forked from ungleich-public/cdist
bugfix: use absolute path when accessing file system
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
b1efc27b39
commit
86f976976e
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ class Object(object):
|
||||||
@property
|
@property
|
||||||
def requirements(self):
|
def requirements(self):
|
||||||
if not self.__requirements:
|
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
|
return self.__requirements
|
||||||
|
|
||||||
@requirements.setter
|
@requirements.setter
|
||||||
|
@ -106,7 +106,7 @@ class Object(object):
|
||||||
if isinstance(value, cdist.core.property.FileList):
|
if isinstance(value, cdist.core.property.FileList):
|
||||||
self.__requirements = value
|
self.__requirements = value
|
||||||
else:
|
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
|
### /requirements
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue