From 5f4a85f6ad88f8411965060fc568ed65e4bbbce3 Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Fri, 7 Oct 2011 16:49:18 +0200
Subject: [PATCH] also need .cdist in relative paths

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 lib/cdist/core/object.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cdist/core/object.py b/lib/cdist/core/object.py
index 2f1d93c4..4cbcd550 100644
--- a/lib/cdist/core/object.py
+++ b/lib/cdist/core/object.py
@@ -68,7 +68,7 @@ class Object(object):
         self.base_path = base_path
         self.object_id = object_id
         self.name = os.path.join(self.type.name, self.object_id)
-        self.path = os.path.join(self.type.path, self.object_id)
+        self.path = os.path.join(self.type.path, self.object_id, DOT_CDIST)
         self.absolute_path = os.path.join(self.base_path, self.path, DOT_CDIST)
         self.code_local_path = os.path.join(self.path, "code-local")
         self.code_remote_path = os.path.join(self.path, "code-remote")