diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index 3c11d6bb..2071a0e9 100644 --- a/lib/cdist/config_install.py +++ b/lib/cdist/config_install.py @@ -78,7 +78,7 @@ class ConfigInstall: def run_type_explorer(self, cdist_object): """Run type specific explorers for objects""" - type = self.path.get_type_from_object(cdist_object) + type = cdist_object.type self.path.transfer_type_explorers(type) cmd = [] diff --git a/lib/cdist/path.py b/lib/cdist/path.py index 98572b81..d82ae974 100644 --- a/lib/cdist/path.py +++ b/lib/cdist/path.py @@ -192,11 +192,6 @@ class Path: return object_paths - # FIXME: Object - def get_type_from_object(self, cdist_object): - """Returns the first part (i.e. type) of an object""" - return cdist_object.split(os.sep)[0] - # FIXME: Object def get_object_id_from_object(self, cdist_object): """Returns everything but the first part (i.e. object_id) of an object"""