fix most test cases broken by no-dot-cdist change

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-03-05 18:32:47 +01:00
commit d08c29b581
19 changed files with 97 additions and 53 deletions

View file

@ -158,12 +158,13 @@ class CdistObject(object):
base_path = self.base_path
type_path = self.cdist_type.base_path
object_marker = self.object_marker
type_name, object_id = self.split_name(object_name)
cdist_type = self.cdist_type.__class__(type_path, type_name)
return self.__class__(cdist_type, base_path, object_id=object_id)
return self.__class__(cdist_type, base_path, object_marker, object_id=object_id)
def __repr__(self):
return '<CdistObject %s>' % self.name