fix most test cases broken by no-dot-cdist change
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
parent
fa6e389fdd
commit
d08c29b581
19 changed files with 97 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue