remove obsolete get_type_from_object() and use Object.type

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-06 20:42:31 +02:00
parent c0d6d4d530
commit b891818b9c
2 changed files with 1 additions and 6 deletions

View File

@ -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 = []

View File

@ -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"""