def _get_object(obj_ref):
 return _db_content[obj_ref.type][obj_ref]

def _get_object ( obj_ref ) : return _db_content [ obj_ref . type ] [ obj_ref ]
helper function to retrieve objtype from pillars if objname is string_types .