Exemple #1
0
 def get_all_by_root_stack(cls, context, stack_id, filters, cache=False):
     resources_db = db_api.resource_get_all_by_root_stack(
         context, stack_id, filters)
     all = cls._resources_to_dict(context, resources_db)
     if cache:
         context.cache(ResourceCache).set_by_stack_id(all)
     return all
Exemple #2
0
 def get_all_by_root_stack(cls, context, stack_id, filters, cache=False):
     resources_db = db_api.resource_get_all_by_root_stack(
         context,
         stack_id,
         filters)
     all = cls._resources_to_dict(context, resources_db)
     if cache:
         context.cache(ResourceCache).set_by_stack_id(all)
     return all
Exemple #3
0
 def get_all_stack_ids_by_root_stack(cls, context, stack_id):
     resources_db = db_api.resource_get_all_by_root_stack(
         context, stack_id, stack_id_only=True)
     return {db_res.stack_id for db_res in six.itervalues(resources_db)}
Exemple #4
0
 def get_all_stack_ids_by_root_stack(cls, context, stack_id):
     resources_db = db_api.resource_get_all_by_root_stack(
         context,
         stack_id,
         stack_id_only=True)
     return {db_res.stack_id for db_res in six.itervalues(resources_db)}