remove obsolete get_type_from_object() and use Object.type

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/feature_files_export
Nico Schottelius 14 years ago
parent c0d6d4d530
commit b891818b9c
  1. 2
      lib/cdist/config_install.py
  2. 5
      lib/cdist/path.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 = []

5
lib/cdist/path.py vendored

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

Loading…
Cancel
Save